aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/unreachable_code-double_break.zig
blob: f8e4b86a90a7e1f134d186cec27b8aa1ef587f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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