blob: 34f8dc5576acfe21926dd4cf9da343388791cc89 [file] [log] [blame]
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 = 0b1010;
let c = v ^ 0b0101;
return c;
}
noInline(foo);
for (let i = 0; i < 10000; i++) {
assert(foo(0b1010n), 0b1111);
}