aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/assign_unreachable.zig
blob: ae8bd3f51b6d67edca89d229708fa4a95ae7d19e (plain)
1
2
3
4
5
6
7
8
9
export fn f() void {
    const a = return;
    _ = a;
}

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