zig/test/cases/compile_errors/invalid_tail_call.zig
mlugg 4be0cf30fc
test: update for CallingConvention changes
This also includes some compiler and std changes to correct error
messages which weren't properly updated before.
2024-10-19 19:15:23 +01:00

12 lines
312 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'