summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testIntUnderflow.js
blob: 65db00a0a7dd664532e99ed1012fc55608b53d3c (plain)
1
2
3
4
5
6
7
8
9
function testIntUnderflow() {
    // int32_min + 8
    var ival = -2147483648 + 8;
    for (var i = 0; i < 30; i++) {
        ival -= 2;
    }
    return (ival > -2147483648);
}
assertEq(testIntUnderflow(), false);