blob: 0eb3994e220b97491a6440be1ded1cdf6b1bf412 [file] [log] [blame]
function foo() {
var array = [];
for (var i = 0; i < 1000; ++i)
array.push(i + 0.5);
var result = 0;
for (var i = 0; i < 1000; ++i) {
for (var j = 0; j < array.length; ++j)
result += array[j];
}
return result;
}
if (foo() != 500000000)
throw "ERROR";