http://d.puremagic.com/issues/show_bug.cgi?id=8091



--- Comment #1 from Kasumi Hanazuki <k.hanaz...@gmail.com> 2012-05-12 23:58:16 
PDT ---
more simplification:

----

int solve(int n) {
    int a = (n == 0) ? 1 : (n == 1) ? 1 : 0;
    return (a != 0) ? a : 0;
}

void main() {
    assert(solve(0) ==  1);
    assert(solve(1) ==  1); // fails with -O
    assert(solve(2) ==  0);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to