blob: 6af1fd73c9b983ea8b2eff71b123a60fa8da005e [file] [log] [blame]
function foo(a, i) {
var x = a[i];
predictInt32(x);
return x + 2000000000;
}
noInline(foo);
var array = [2000000000.5];
for (var i = 0; i < 1000000; ++i) {
var result = foo(array, 0);
if (result != 4000000000.5)
throw "Error: bad result: " + result;
}