blob: ca9a39cccdaeb32e9adef91448cbc080eb8fee74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// RUN: %clang_cc1 -E -fsanitize=memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s
// RUN: %clang_cc1 -E -fsanitize=kernel-memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s
// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-MSAN %s
#if __has_feature(memory_sanitizer)
int MemorySanitizerEnabled();
#else
int MemorySanitizerDisabled();
#endif
// CHECK-MSAN: MemorySanitizerEnabled
// CHECK-NO-MSAN: MemorySanitizerDisabled
|