Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -E | grep "^ 4" |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 2 | #define FOO __LINE__ |
| 3 | |
| 4 | FOO |
Chris Lattner | c8fbd44 | 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 | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 7 | // RUN: %clang_cc1 %s -E | grep "^A 13" |
Chris Lattner | c8fbd44 | 2009-02-15 21:06:15 +0000 | [diff] [blame] | 8 | |
| 9 | #define X() __LINE__ |
| 10 | |
| 11 | A X( |
| 12 | |
| 13 | ) |