summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_feature_leak_sanitizer.cpp
blob: 00ca96f4ba73f2266afce679fa566cdfe4f3e57d (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -E -fsanitize=leak %s -o - | FileCheck --check-prefix=CHECK-LSAN %s
// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-LSAN %s

#if __has_feature(leak_sanitizer)
int LeakSanitizerEnabled();
#else
int LeakSanitizerDisabled();
#endif

// CHECK-LSAN: LeakSanitizerEnabled
// CHECK-NO-LSAN: LeakSanitizerDisabled
OpenPOWER on IntegriCloud