llvm-for-llvmta/tools/clang/test/Lexer/has_feature_leak_sanitizer.cpp

12 lines
343 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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