2012-12-20 20:03:13 +08:00
|
|
|
// RUN: %clang_cc1 -E -fsanitize=memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s
|
2018-09-07 17:21:09 +08:00
|
|
|
// RUN: %clang_cc1 -E -fsanitize=kernel-memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s
|
2012-12-20 20:03:13 +08:00
|
|
|
// 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
|