aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/invalid_tail_call.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-12-11 19:26:41 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2025-12-16 06:22:51 +0100
commiteaae3f936bf047186453fa2ec1d99ba684edede8 (patch)
tree8404a19e7453cfba585273086232ade376173068 /test/cases/compile_errors/invalid_tail_call.zig
parentf36949ead358e2fa4430454e15685e60e6bd07f5 (diff)
downloadzig-eaae3f936bf047186453fa2ec1d99ba684edede8.tar.gz
zig-eaae3f936bf047186453fa2ec1d99ba684edede8.zip
test: limit `invalid_tail_call` to x86_64-linux
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.
Diffstat (limited to 'test/cases/compile_errors/invalid_tail_call.zig')
-rw-r--r--test/cases/compile_errors/invalid_tail_call.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cases/compile_errors/invalid_tail_call.zig b/test/cases/compile_errors/invalid_tail_call.zig
index 8a1f298f25..8990304b96 100644
--- a/test/cases/compile_errors/invalid_tail_call.zig
+++ b/test/cases/compile_errors/invalid_tail_call.zig
@@ -7,5 +7,6 @@ pub export fn entry() void {
// 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'