2013-01-26 04:34:08 +08:00
|
|
|
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
|
2006-10-06 10:59:40 +08:00
|
|
|
|
|
|
|
#define X() Y
|
|
|
|
#define Y() X
|
|
|
|
|
2009-04-18 14:44:18 +08:00
|
|
|
A: X()()()
|
2013-01-26 04:34:08 +08:00
|
|
|
// CHECK: {{^}}A: Y{{$}}
|
2009-04-18 14:44:18 +08:00
|
|
|
|
|
|
|
// PR3927
|
|
|
|
#define f(x) h(x
|
|
|
|
#define for(x) h(x
|
|
|
|
#define h(x) x()
|
|
|
|
B: f(f))
|
|
|
|
C: for(for))
|
2006-10-06 10:59:40 +08:00
|
|
|
|
2013-01-26 04:34:08 +08:00
|
|
|
// CHECK: {{^}}B: f(){{$}}
|
|
|
|
// CHECK: {{^}}C: for(){{$}}
|
|
|
|
|
2009-05-13 08:55:26 +08:00
|
|
|
// rdar://6880648
|
|
|
|
#define f(x,y...) y
|
|
|
|
f()
|