aboutsummaryrefslogtreecommitdiff
path: root/test/cases/no_compile_panic_for_unchecked_arith.zig
blob: f94e5b1869a490b2d0d09d1342e2b6178929b783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub const panic = @compileError("");

export fn entry() usize {
    var x: usize = 0;
    x +%= 1;
    x -%= 1;
    x *%= 2;
    x +|= 1;
    x -|= 1;
    x *|= 2;
    return x;
}

// compile
// output_mode=Obj
// emit_bin=false