zig/test/cases/compile_errors/unreachable_code.zig
2022-06-30 09:57:38 +02:00

13 lines
186 B
Zig

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