clang/test/Preprocessor/cxx_true.cpp

14 строки
191 B
C++

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