summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_feature_efficiency_sanitizer.cpp
blob: a1b0f06102799c63da5eed356094e0aa876dc505 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -E -fsanitize=efficiency-cache-frag %s -o - | FileCheck --check-prefix=CHECK-ESAN %s
// RUN: %clang_cc1 -E  %s -o - | FileCheck --check-prefix=CHECK-NO-ESAN %s

#if __has_feature(efficiency_sanitizer)
int EfficiencySanitizerEnabled();
#else
int EfficiencySanitizerDisabled();
#endif

// CHECK-ESAN: EfficiencySanitizerEnabled
// CHECK-NO-ESAN: EfficiencySanitizerDisabled
OpenPOWER on IntegriCloud