clang/test/CodeGen/PowerPC/musttail-undefined.c
raw| 1 | // RUN: %clang_cc1 %s -triple powerpc64-unknown-linux-gnu -o /dev/null -emit-llvm -verify |
| 2 | // RUN: %clang_cc1 %s -triple powerpc64le-unknown-linux-gnu -o /dev/null -emit-llvm -verify |
| 3 | |
| 4 | int foo(int x); |
| 5 | |
| 6 | int bar(int x) |
| 7 | { |
| 8 | // expected-error@+1 {{'musttail' attribute for this call is impossible because external calls cannot be tail called on PPC}} |
| 9 | [[clang::musttail]] return foo(x); |
| 10 | } |