| Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -DA=1 -E %s | grep 'int a = 927 == 927' |
| 2 | // RUN: %clang_cc1 -E %s | grep 'int a = 37 == 37' | ||||
| Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 3 | #if not defined(A) |
| 4 | #define X 37 | ||||
| 5 | #else | ||||
| 6 | #define X 927 | ||||
| 7 | #endif | ||||
| 8 | |||||
| 9 | #if ! defined(A) | ||||
| 10 | #define Y 37 | ||||
| 11 | #else | ||||
| 12 | #define Y 927 | ||||
| 13 | #endif | ||||
| 14 | |||||
| 15 | int a = X == Y; | ||||