blob: 4b15fb20944e4f1a4fb3242c3b343fa12b10a7f7 [file] [log] [blame]
//@ runBigIntEnabled
function assert(a, e) {
if (a !== e)
throw new Error("Expected: " + e + " bug got: " + a);
}
let predicate = true;
function foo(a) {
let v = a;
if (predicate)
v = 1;
let c = v << 4;
return c;
}
noInline(foo);
for (let i = 0; i < 10000; i++) {
assert(foo(1n), 16);
}