aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_tail_call.zig
blob: e3ce28709a96042112fb52cb76bc119fe211e231 (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'