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

fn b() void {}

// error
//
// :3:6: error: unreachable code
// :2:5: note: control flow is diverted here