brintos

brintos / llvm-project-archived public Read only

0
0
Text · 616 B · 242f3b6 Raw
17 lines · cpp
1// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-linux-gnu -verify %s -DSUPPORTED=12// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-apple-macosx -verify %s -DSUPPORTED=13// RUN: %clang_cc1 -emit-llvm-only -triple arm64-apple-macosx -verify %s -DSUPPORTED=14// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-pc-win32 -verify %s -DNOT_SUPPORTED=15 6// expected-no-diagnostics7 8#if __has_attribute(ifunc)9#  if NOT_SUPPORTED10#    error "ifunc appears to be supported on this platform, but shouldn't be"11#  endif12#else13#  if SUPPORTED14#    error "ifunc should be supported on this platform, but isn't"15#  endif16#endif17