xref: /llvm-project/clang/test/CodeGen/PowerPC/musttail-indirect.cpp (revision e44c28f07ede2bd693e2372317880f57a635fa73)
1 // RUN: %clang_cc1 %s -triple powerpc64-unknown-linux-gnu -o /dev/null -emit-llvm -verify
2 // RUN: %clang_cc1 %s -triple powerpc-unknown-linux-gnu -o /dev/null -emit-llvm -verify
3 
4 void name(int *params) {
5   auto fn = (void (*)(int *))1;
6   // expected-error@+1 {{'musttail' attribute for this call is impossible because indirect calls cannot be tail called on PPC}}
7   [[clang::musttail]] return fn(params);
8 }
9