mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 03:01:19 +00:00
12 lines
356 B
C++
12 lines
356 B
C++
// 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
|