You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
356 B
12 lines
356 B
// RUN: %clang_cc1 -E -fsanitize=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
|