summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1745949.js
blob: 0047afe7c51b7a8e3626ee5e7ab5e216f912277b (plain)
1
2
3
4
5
6
7
8
9
10
11
function foo() {
    let v;
    let i = -2000;
    do {
	v = i * -1;
	v += v;
	i++;
    } while (i < 1);
    return Object.is(v, -0);
}
assertEq(foo(), true);