Clang Project

clang_source_code/test/Lexer/has_feature_xray_instrument.cpp
1// RUN: %clang_cc1 -E -fxray-instrument %s -o - | FileCheck --check-prefix=CHECK-XRAY %s
2// RUN: %clang_cc1 -E  %s -o - | FileCheck --check-prefix=CHECK-NO-XRAY %s
3
4#if __has_feature(xray_instrument)
5int XRayInstrumentEnabled();
6#else
7int XRayInstrumentDisabled();
8#endif
9
10// CHECK-XRAY: XRayInstrumentEnabled
11// CHECK-NO-XRAY: XRayInstrumentDisabled
12