summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testMulOverflow.js
blob: 5d7a1339fcb356e02b5748db107cd4497adcc2ba (plain)
1
2
3
4
5
6
function testMulOverflow() {
    var a = [];
    for (let j=0;j<5;++j) a.push(0 | ((0x60000009) * 0x60000009));
    return a.join(",");
}
assertEq(testMulOverflow(), "-1073741824,-1073741824,-1073741824,-1073741824,-1073741824");