Chris Lattner | 1701663 | 2009-02-15 21:06:15 +0000 | [diff] [blame] | 1 | // RUN: clang %s -E | grep "^ 4" && |
Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 2 | #define FOO __LINE__ |
3 | |||||
4 | FOO | ||||
Chris Lattner | 1701663 | 2009-02-15 21:06:15 +0000 | [diff] [blame] | 5 | |
6 | // PR3579 - This should expand to the __LINE__ of the ')' not of the X. | ||||
7 | // RUN: clang %s -E | grep "^A 13" | ||||
8 | |||||
9 | #define X() __LINE__ | ||||
10 | |||||
11 | A X( | ||||
12 | |||||
13 | ) |