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

11 lines
183 B
Zig

export fn f() void {
const a = return;
_ = a;
}
// error
// backend=stage2
// target=native
//
// :2:5: error: unreachable code
// :2:15: note: control flow is diverted here