Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / clang / test / CodeGen / PowerPC / musttail-undefined.c
blobfb3845218a622535b943ff260f5d1fe59ce27c78
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
4 int foo(int x);
6 int bar(int x)
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);