blob: b9df90fac7d8802fe30b709aab2a515d768d3df3 [file] [log] [blame]
//@ runNoFTL
function foo(a, b) {
var c = a - b;
var d = a * b;
var e = a / b;
var f = a | b;
var g = a ^ b;
var h = a & b;
return c + d - e + f - g + h;
}
var result = 0;
for (var i = 0; i < 100000; ++i)
result ^= foo("42", i);
if (result != 3472169)
throw "Bad result: " + result;