cxx_true.cpp 358 B

123456789101112131415161718
  1. /* RUN: %clang_cc1 -E %s -x c++ | FileCheck -check-prefix CPP %s
  2. RUN: %clang_cc1 -E %s -x c | FileCheck -check-prefix C %s
  3. RUN: %clang_cc1 -E %s -x c++ -verify -Wundef
  4. */
  5. // expected-no-diagnostics
  6. #if true
  7. // CPP: test block_1
  8. // C-NOT: test block_1
  9. test block_1
  10. #endif
  11. #if false
  12. // CPP-NOT: test block_2
  13. // C-NOT: test block_2
  14. test block_2
  15. #endif