Daniel Dunbar | a45cf5b | 2009-03-24 02:24:46 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc %s -E | grep "^ 4" && |
Chris Lattner | 677e3a2 | 2006-06-29 16:25:13 +0000 | [diff] [blame] | 2 | #define FOO __LINE__ |
| 3 | |
| 4 | FOO |
Chris Lattner | 2edf0fc | 2009-02-15 21:06:15 +0000 | [diff] [blame] | 5 | |
| 6 | // PR3579 - This should expand to the __LINE__ of the ')' not of the X. |
Daniel Dunbar | a45cf5b | 2009-03-24 02:24:46 +0000 | [diff] [blame^] | 7 | // RUN: clang-cc %s -E | grep "^A 13" |
Chris Lattner | 2edf0fc | 2009-02-15 21:06:15 +0000 | [diff] [blame] | 8 | |
| 9 | #define X() __LINE__ |
| 10 | |
| 11 | A X( |
| 12 | |
| 13 | ) |