aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_tail_call.zig
blob: 3d327b948ba100ae15b45aa83a47e105c431ee08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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'