| 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 | |
| 7 | #if true |
| 8 | // CPP: test block_1 |
| 9 | // C-NOT: test block_1 |
| 10 | test block_1 |
| 11 | #endif |
| 12 | |
| 13 | #if false |
| 14 | // CPP-NOT: test block_2 |
| 15 | // C-NOT: test block_2 |
| 16 | test block_2 |
| 17 | #endif |
| 18 | |
| 19 |