2013-01-29 05:04:29 +08:00
|
|
|
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
|
2006-06-30 00:25:13 +08:00
|
|
|
#define FOO __LINE__
|
|
|
|
|
|
|
|
FOO
|
2013-01-29 05:04:29 +08:00
|
|
|
// CHECK: {{^}} 4{{$}}
|
2009-02-16 05:06:15 +08:00
|
|
|
|
|
|
|
// PR3579 - This should expand to the __LINE__ of the ')' not of the X.
|
|
|
|
|
|
|
|
#define X() __LINE__
|
|
|
|
|
|
|
|
A X(
|
|
|
|
|
|
|
|
)
|
2013-01-29 05:04:29 +08:00
|
|
|
// CHECK: {{^}}A 13{{$}}
|
|
|
|
|