Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Preprocessor/cxx_true.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 /* RUN: %clang_cc1 -E %s -x c++ | FileCheck -check-prefix CPP %s |
2 RUN: %clang_cc1 -E %s -x c | FileCheck -check-prefix C %s | |
3 RUN: %clang_cc1 -E %s -x c++ -verify -Wundef | |
4 */ | |
5 // expected-no-diagnostics | |
6 | |
7 #if true | |
8 // CPP: test block_1 | |
9 // C-NOT: test block_1 | |
10 test block_1 | |
11 #endif | |
12 | |
13 #if false | |
14 // CPP-NOT: test block_2 | |
15 // C-NOT: test block_2 | |
16 test block_2 | |
17 #endif | |
18 |