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