aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/empty_switch_on_an_integer.zig
blob: 5ac9ed454fa38471155086c51d05aa96345d07ce (plain)
1
2
3
4
5
6
7
8
9
10
export fn entry() void {
    const x: u32 = 0;
    switch (x) {}
}

// error
// backend=stage2
// target=native
//
// :3:5: error: switch must handle all possibilities