zig/test/cases/compile_errors/unreachable_code-double_break.zig
2022-06-30 09:57:38 +02:00

13 lines
232 B
Zig

export fn a() void {
const b = blk: {
break :blk break :blk @as(u32, 1);
};
_ = b;
}
// error
// backend=stage2
// target=native
//
// :3:9: error: unreachable code
// :3:20: note: control flow is diverted here