blob: de5dd3e52f66de81cbb460b04e51db58f69f0832 [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, b) {
let v = a;
if (predicate)
v = 10;
let c = ~v;
return c;
}
noInline(foo);
for (let i = 0; i < 10000; i++) {
assert(foo(10n, 10), -11);
}