aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer/has_feature_xray_instrument.cpp
blob: cd2750d77f9b8d43dfb61db80f1af623c80094df (plain)
1
2
3
4
5
6
7
8
9
10
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