brintos

brintos / llvm-project-archived public Read only

0
0
Text · 406 B · 1ac841f Raw
13 lines · c
1// RUN: %clang_cc1 %s -triple powerpc64-unknown-linux-gnu -o /dev/null -emit-llvm -verify2// RUN: %clang_cc1 %s -triple powerpc64le-unknown-linux-gnu -o /dev/null -emit-llvm -verify3 4inline int foo(int x) {5  return x;6}7 8int bar(int x)9{10  // expected-error@+1 {{'musttail' attribute for this call is impossible because external calls cannot be tail called on PPC}}11  [[clang::musttail]] return foo(1);12}13