blob: cd2750d77f9b8d43dfb61db80f1af623c80094df [file] [log] [blame]
Petr Hosek00f51c02018-09-17 05:25:47 +00001// 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