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