summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testDivisionWithNegative1.js
blob: 18a3b266fa43319e365fe2b15275fab66c90c46f (plain)
1
2
3
4
5
6
function testDivisionWithNegative1() {
    for (var i = 3; i >= 0; --i)
        c = i / -1;
    return 1/c;
}
assertEq(testDivisionWithNegative1(), -Infinity);