llvm-for-llvmta/tools/clang/test/Lexer/has_feature_xray_instrument...

12 lines
351 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -E -fxray-instrument %s -o - | FileCheck --check-prefix=CHECK-XRAY %s
// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-XRAY %s
#if __has_feature(xray_instrument)
int XRayInstrumentEnabled();
#else
int XRayInstrumentDisabled();
#endif
// CHECK-XRAY: XRayInstrumentEnabled
// CHECK-NO-XRAY: XRayInstrumentDisabled