teak-llvm/clang/test/Preprocessor/cxx_true.cpp
Chris Lattner a7fa1b247c 'true' in a CPP expression evaluates to 1 when in C++ mode. This implements
test/Preprocessor/cxx_true.cpp

llvm-svn: 39399
2007-04-10 06:16:30 +00:00

14 lines
200 B
C++

/* RUN: clang -E t.cpp -x=c++ | grep block_1 &&
RUN: clang -E t.cpp -x=c++ | not grep block_2 &&
RUN: clang -E t.cpp -x=c | not grep block
*/
#if true
block_1
#endif
#if false
block_2
#endif