xref: /minix3/external/bsd/llvm/dist/clang/test/Lexer/has_feature_memory_sanitizer.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -E -fsanitize=memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s
2 // RUN: %clang_cc1 -E  %s -o - | FileCheck --check-prefix=CHECK-NO-MSAN %s
3 
4 #if __has_feature(memory_sanitizer)
5 int MemorySanitizerEnabled();
6 #else
7 int MemorySanitizerDisabled();
8 #endif
9 
10 // CHECK-MSAN: MemorySanitizerEnabled
11 // CHECK-NO-MSAN: MemorySanitizerDisabled
12