summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/cxx_true.cpp
blob: 39cb349b2a810d9c4561b5dbf574e03621f602c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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
*/
// expected-no-diagnostics

#if true
block_1
#endif

#if false
block_2
#endif

OpenPOWER on IntegriCloud