Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %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 | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 7 | // RUN: %clang_cc1 %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 | ) |