Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Lexer/has_feature_memory_sanitizer.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -E -fsanitize=memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s |
2 // RUN: %clang_cc1 -E -fsanitize=kernel-memory %s -o - | FileCheck --check-prefix=CHECK-MSAN %s | |
3 // RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-MSAN %s | |
4 | |
5 #if __has_feature(memory_sanitizer) | |
6 int MemorySanitizerEnabled(); | |
7 #else | |
8 int MemorySanitizerDisabled(); | |
9 #endif | |
10 | |
11 // CHECK-MSAN: MemorySanitizerEnabled | |
12 // CHECK-NO-MSAN: MemorySanitizerDisabled |