summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/cxx_true.cpp
blob: 5ee29720d3d70d9e63e5ac0a94cdef96dfac0c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* RUN: %clang_cc1 -E %s -x c++ | grep block_1
   RUN: %clang_cc1 -E %s -x c++ | not grep block_2
   RUN: %clang_cc1 -E %s -x c | not grep block
   RUN: %clang_cc1 -E %s -x c++ -verify -Wundef
*/

#if true
block_1
#endif

#if false
block_2
#endif

OpenPOWER on IntegriCloud