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