llvm-project/clang/test/Preprocessor/cxx_true.cpp

16 lines
275 B
C++

/* 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