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.
1 files changed, 1 insertions(+), 0 deletions(-)
test/cases/compile_errors/invalid_tail_call.zig+1
| ... | ... | @@ -7,5 +7,6 @@ pub export fn entry() void { |
| 7 | 7 | |
| 8 | 8 | // error |
| 9 | 9 | // backend=llvm |
| 10 | // target=x86_64-linux |
| 10 | 11 | // |
| 11 | 12 | // :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' |