summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug886246.js
blob: ab6144eddea2786a5bf0a8afb8a53fae721b1fac (plain)
1
2
3
4
5
6
7
8
9
10
11
function f(x)
{
    x = x|0;
    return ~~((x ? 1.0e60 : 1.0e60) + 1.0);
}

var r = -1;
for(var i = 0; i < 20000; i++) {
    r = f();
}
assertEq(r, 0);