zig/test/cases/compile_errors/unreachable_parameter.zig
2022-07-21 12:21:30 -07:00

9 lines
171 B
Zig

fn f(a: noreturn) void { _ = a; }
export fn entry() void { f(); }
// error
// backend=stage2
// target=native
//
// :1:6: error: parameter of type 'noreturn' not allowed