diff options
Diffstat (limited to 'test/Lexer/has_feature_xray_instrument.cpp')
-rw-r--r-- | test/Lexer/has_feature_xray_instrument.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Lexer/has_feature_xray_instrument.cpp b/test/Lexer/has_feature_xray_instrument.cpp new file mode 100644 index 0000000000000..cd2750d77f9b8 --- /dev/null +++ b/test/Lexer/has_feature_xray_instrument.cpp @@ -0,0 +1,11 @@ +// 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 |