summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/ion/bug739854.js
blob: 226c17425b2547d12e650a8b57e7c8733f54a7c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function test(x) {
    switch(x) {
        case 0:
          return 0;
        default:
          return -1;
    }
}

for(var i=0; i<100; i++) {
    assertEq(test(-0), 0);
}