brintos

brintos / llvm-project-archived public Read only

0
0
Text · 689 B · 1070b91 Raw
14 lines · c
1// RUN: %clang_cc1 %s -triple powerpc64-ibm-aix-xcoff -o /dev/null -emit-llvm -verify=aix2// RUN: %clang_cc1 %s -triple powerpc-ibm-aix-xcoff -o /dev/null -emit-llvm -verify=aix3// RUN: %clang_cc1 %s -triple powerpc64-unknown-linux-gnu -o /dev/null -emit-llvm -verify=linux4// RUN: %clang_cc1 %s -triple powerpc64le-unknown-linux-gnu -o /dev/null -emit-llvm -verify=linux5 6__attribute__((weak)) int func2(int i) {7  return 0;8}9int 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);13}14