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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 /* RUN: %clang_cc1 -E %s -x c++ | FileCheck -check-prefix CPP %s
anatofuz
parents:
diff changeset
2 RUN: %clang_cc1 -E %s -x c | FileCheck -check-prefix C %s
anatofuz
parents:
diff changeset
3 RUN: %clang_cc1 -E %s -x c++ -verify -Wundef
anatofuz
parents:
diff changeset
4 */
anatofuz
parents:
diff changeset
5 // expected-no-diagnostics
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 #if true
anatofuz
parents:
diff changeset
8 // CPP: test block_1
anatofuz
parents:
diff changeset
9 // C-NOT: test block_1
anatofuz
parents:
diff changeset
10 test block_1
anatofuz
parents:
diff changeset
11 #endif
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 #if false
anatofuz
parents:
diff changeset
14 // CPP-NOT: test block_2
anatofuz
parents:
diff changeset
15 // C-NOT: test block_2
anatofuz
parents:
diff changeset
16 test block_2
anatofuz
parents:
diff changeset
17 #endif
anatofuz
parents:
diff changeset
18