blob: bd5a2af47e8d3618c170f281086cc02dd2c7299e [file] [log] [blame]
//@ skip if $architecture == "x86"
var n = 10000000;
function bar() { }
function foo(b) {
var result = 0;
var set = function (x) { result = x; }
if (b) {
OSRExit();
if (b) {
bar(set);
}
return 0;
}
return result;
}
noInline(bar);
noInline(foo);
for (var i = 0; i < n; i++) {
var result = foo(!(i % 100));
if (result != 0)
throw "Error: bad result: " + result;
}