mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
eaae3f936b
Targets that don't support tail calls will see:
/home/ci/zig/.zig-cache/o/35dbe82c8e4d49ae5b7d630329568133/tmp.zig:5:5: error: unable to perform tail call: compiler backend 'stage2_llvm' does not support tail calls on target architecture 'powerpc64le' with the selected CPU feature flags
So just run this test on a known-good target.
13 lines
318 B
Zig
13 lines
318 B
Zig
fn myFn(_: usize) void {
|
|
return;
|
|
}
|
|
pub export fn entry() void {
|
|
@call(.always_tail, myFn, .{0});
|
|
}
|
|
|
|
// error
|
|
// backend=llvm
|
|
// target=x86_64-linux
|
|
//
|
|
// :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'
|