Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
no_compile_panic_for_unchecked_arith.zig
pretty
plain
permalink
blame
history
•
16 lines
•
229 B
1
pub const panic = @compileError("");
2
3
export fn entry() usize {
4
var x: usize = 0;
5
x +%= 1;
6
x -%= 1;
7
x *%= 2;
8
x +|= 1;
9
x -|= 1;
10
x *|= 2;
11
return x;
12
}
13
14
// compile
15
// output_mode=Obj
16
// emit_bin=false