Jakub Konka 2875216f8e test: fix x86_64-macos failures
This is just a temporary fix - I would like to unify all of x86_64
tests across linux and macos OSes.
2022-04-28 18:35:01 +02:00

16 lines
292 B
Zig

fn assert(ok: bool) void {
if (!ok) unreachable;
}
fn rem(lhs: i32, rhs: i32, expected: i32) bool {
return @rem(lhs, rhs) == expected;
}
pub fn main() void {
assert(rem(-5, 3, -2));
assert(rem(5, 3, 2));
}
// run
// backend=stage2,llvm
// target=x86_64-linux,x86_64-macos
//