Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | /* RUN: %clang_cc1 -E %s -x c++ | grep block_1 |
| 2 | RUN: %clang_cc1 -E %s -x c++ | not grep block_2 |
| 3 | RUN: %clang_cc1 -E %s -x c | not grep block |
Eli Friedman | 9c61137 | 2012-09-20 02:38:38 +0000 | [diff] [blame] | 4 | RUN: %clang_cc1 -E %s -x c++ -verify -Wundef |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 5 | */ |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 6 | // expected-no-diagnostics |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 7 | |
| 8 | #if true |
| 9 | block_1 |
| 10 | #endif |
| 11 | |
| 12 | #if false |
| 13 | block_2 |
| 14 | #endif |
| 15 | |