2016-04-22 05:32:04 +08:00
|
|
|
// RUN: %clang_cc1 -E -fsanitize=efficiency-cache-frag %s -o - | FileCheck --check-prefix=CHECK-ESAN %s
|
2016-05-25 08:41:24 +08:00
|
|
|
// RUN: %clang_cc1 -E -fsanitize=efficiency-working-set %s -o - | FileCheck --check-prefix=CHECK-ESAN %s
|
2016-04-22 05:32:04 +08:00
|
|
|
// 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
|