blob: 6188f8b7e0fc6e22636666a92462ab21530e4556 [file] [log] [blame]
function foo(x) {
var y = x;
var z = y * 2;
if (z) {
z += y;
z += y;
z += y;
}
return z;
}
noInline(foo);
for (var i = 0; i < 100000; ++i) {
var result = foo(1000000000);
if (result != 1000000000 * 2 + 1000000000 * 3)
throw "Error: bad result: " + result;
}