[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / clang / test / CodeGen / PowerPC / musttail-weak.c
blob1070b91bc5f35d75a9d4a695d2f877bd5a5f2047
1 // RUN: %clang_cc1 %s -triple powerpc64-ibm-aix-xcoff -o /dev/null -emit-llvm -verify=aix
2 // RUN: %clang_cc1 %s -triple powerpc-ibm-aix-xcoff -o /dev/null -emit-llvm -verify=aix
3 // RUN: %clang_cc1 %s -triple powerpc64-unknown-linux-gnu -o /dev/null -emit-llvm -verify=linux
4 // RUN: %clang_cc1 %s -triple powerpc64le-unknown-linux-gnu -o /dev/null -emit-llvm -verify=linux
6 __attribute__((weak)) int func2(int i) {
7 return 0;
9 int external_call2(int i) {
10 // linux-error@+2 {{'musttail' attribute for this call is impossible because external calls cannot be tail called on PPC}}
11 // aix-error@+1 {{'musttail' attribute is not supported on AIX}}
12 [[clang::musttail]] return func2(i);