blob: d0aa71408fa905ee480bc4533a470ca8d8a181e5 [file] [log] [blame]
function bar(o) {
var tmp = o[0];
var result = 0;
for (var i = 0; i < 1000; ++i) {
if (tmp)
result += tmp * i;
}
return result;
}
noInline(bar);
var result = 0;
for (var i = 0; i < 10000; ++i)
result += bar("");
if (result !== 0)
throw "Error: bad result: " + result;