Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / clang / test / CodeGen / PowerPC / musttail-forward-declaration-inline.c
blobd0ec21209582ee42c88ef10b7dc616e017479cef
1 // RUN: %clang_cc1 %s -triple powerpc64le-unknown-linux-gnu -o /dev/null -emit-llvm -verify
2 // RUN: %clang_cc1 %s -triple powerpc64-unknown-linux-gnu -o /dev/null -emit-llvm -verify
4 inline int func2(int i);
5 int 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);
10 inline int func2(int i) {
11 return 0;