blob: e477a10b3b29c47a2f5a92d89544797b080535d1 [file] [log] [blame]
function foo() {
return fiatInt52(bar($vm.dfgTrue())) + 1;
}
var thingy = false;
function bar(p) {
if (thingy)
return 5.5;
return p ? 42 : 5.5;
}
noInline(foo);
noInline(bar);
for (var i = 0; i < 1000000; ++i) {
var result = foo();
if (result != 43 && result != 6.5)
throw "Error: bad result: " + result;
}
thingy = true;
var result = foo();
if (result != 6.5)
throw "Error: bad result at end: " + result;