Petr Hosek | 00f51c0 | 2018-09-17 05:25:47 +0000 | [diff] [blame^] | 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) | ||||
5 | int XRayInstrumentEnabled(); | ||||
6 | #else | ||||
7 | int XRayInstrumentDisabled(); | ||||
8 | #endif | ||||
9 | |||||
10 | // CHECK-XRAY: XRayInstrumentEnabled | ||||
11 | // CHECK-NO-XRAY: XRayInstrumentDisabled |