Dmitri Gribenko | fc60fbd | 2013-01-28 21:04:29 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 2 | #define FOO __LINE__ |
| 3 | |
| 4 | FOO |
Dmitri Gribenko | fc60fbd | 2013-01-28 21:04:29 +0000 | [diff] [blame] | 5 | // CHECK: {{^}} 4{{$}} |
Chris Lattner | c8fbd44 | 2009-02-15 21:06:15 +0000 | [diff] [blame] | 6 | |
| 7 | // PR3579 - This should expand to the __LINE__ of the ')' not of the X. |
Chris Lattner | c8fbd44 | 2009-02-15 21:06:15 +0000 | [diff] [blame] | 8 | |
| 9 | #define X() __LINE__ |
| 10 | |
| 11 | A X( |
| 12 | |
| 13 | ) |
Dmitri Gribenko | fc60fbd | 2013-01-28 21:04:29 +0000 | [diff] [blame] | 14 | // CHECK: {{^}}A 13{{$}} |
| 15 | |