blob: 4d1883d523a63e9ea367fd056ffe81bfe51835ef [file] [log] [blame]
function foo(a, b) {
var value = DFGTrue() ? -0 : "foo";
if (a * b == value)
return [DFGTrue(), true];
return [DFGTrue(), false];
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
var result = foo(1, 1);
if (result[1] !== false)
throw "Error: bad result: " + result;
}
var result = foo(-1, 0);
if (result[1] !== true && result[0])
throw "Error: bad result at end: " + result;