clang/test/CodeGen/PowerPC/musttail-indirect.cpp
raw| 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 | } |