test53
auto test53 =
q{--- test53
// Test constant folding
i32 add() { return 1 + 3; }
i32 sub() { return 3 - 1; }
i32 mul() { return 3 * 2; }
i32 div() { return 7 / 2; }
i32 rem() { return 7 % 2; }
i32 shl() { return 1 << 2; }
i32 shr() { return i32.min >>> 2; }
i32 sar() { return i32.min >> 2; }
i32 or () { return 0b0011 | 0b0101; }
i32 xor() { return 0b0011 ^ 0b0101; }
i32 and() { return 0b0011 & 0b0101; }
};
tests passing
functionsvariables