blob: db5a103742896d1097f2001f991e3548da9c7a67 [file] [log] [blame]
Dmitri Gribenko6f2082b2013-01-28 21:04:29 +00001// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
Chris Lattner677e3a22006-06-29 16:25:13 +00002#define FOO __LINE__
3
4 FOO
Dmitri Gribenko6f2082b2013-01-28 21:04:29 +00005// CHECK: {{^}} 4{{$}}
Chris Lattner2edf0fc2009-02-15 21:06:15 +00006
7// PR3579 - This should expand to the __LINE__ of the ')' not of the X.
Chris Lattner2edf0fc2009-02-15 21:06:15 +00008
9#define X() __LINE__
10
11A X(
12
13)
Dmitri Gribenko6f2082b2013-01-28 21:04:29 +000014// CHECK: {{^}}A 13{{$}}
15