brintos

brintos / llvm-project-archived public Read only

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