aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/unreachable_code.zig
blob: 25c412d254e4ba283ad3f08e8a732a01879d5fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export fn a() void {
    return;
    b();
}

fn b() void {}

// error
// backend=stage2
// target=native
//
// :3:6: error: unreachable code
// :2:5: note: control flow is diverted here