blob: 181566fcf4612e181096a3dd4ef36687c13e8624 [file] [log] [blame]
function foo(a) {
if (a != 0)
return a + 1;
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
var result = foo(42);
if (result != 43)
throw "Error: bad result in loop: " + result;
}
var result = foo(2147483647);
if (result != 2147483648)
throw "Error: bad result at end: " + result;