brintos

brintos / llvm-project-archived public Read only

0
0
Text · 452 B · ca9a39c Raw
13 lines · cpp
1// RUN: %clang_cc1 -E -fsanitize=memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s2// RUN: %clang_cc1 -E -fsanitize=kernel-memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s3// RUN: %clang_cc1 -E  %s -o - | FileCheck --check-prefix=CHECK-NO-MSAN %s4 5#if __has_feature(memory_sanitizer)6int MemorySanitizerEnabled();7#else8int MemorySanitizerDisabled();9#endif10 11// CHECK-MSAN: MemorySanitizerEnabled12// CHECK-NO-MSAN: MemorySanitizerDisabled13