aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/unreachable_code-double_break.zig
blob: 966ba6ef4713739af1eeee7eb1824f7d7f2cfbc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
export fn a() void {
    const b = blk: {
        break :blk break :blk @as(u32, 1);
    };
    _ = b;
}

// error
//
// :3:9: error: unreachable code
// :3:20: note: control flow is diverted here