]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/fold-based-on-int32-proof-mul.js
94fa137f16ce6ec0dbe6214ac09e86fe6534cc4e
[apple/javascriptcore.git] / tests / stress / fold-based-on-int32-proof-mul.js
1 function foo(a, b) {
2 return a * b === -0;
3 }
4 noInline(foo);
5
6 for (var i = 0; i < 10000; ++i) {
7 var result = foo(1, 1);
8 if (result !== false)
9 throw "Error: bad result: " + result;
10 }
11
12 var result = foo(-1, 0);
13 if (result !== true)
14 throw "Error: bad result at end: " + result;