zig/test/cases/compile_errors/invalid_tail_call.zig
2022-12-13 13:14:20 +02:00

13 lines
310 B
Zig

fn myFn(_: usize) void {
return;
}
pub export fn entry() void {
@call(.always_tail, myFn, .{0});
}
// error
// backend=llvm
// target=native
//
// :5:5: error: unable to perform tail call: type of function being called 'fn(usize) void' does not match type of calling function 'fn() callconv(.C) void'