blob: b12f554b1ba2ba596f50e755d58ef05c9361959a [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 = 0b1000;
let c = v | 0b11;
return c;
}
noInline(foo);
for (let i = 0; i < 10000; i++) {
assert(foo(0b1000n), 0b1011);
}