2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang-cc -E %s | grep '^A: Y$'
|
|
|
|
// RUN: clang-cc -E %s | grep '^B: f()$'
|
2009-04-18 14:44:18 +08:00
|
|
|
// RUN: clang-cc -E %s | grep '^C: for()$'
|
2006-10-06 10:59:40 +08:00
|
|
|
|
|
|
|
#define X() Y
|
|
|
|
#define Y() X
|
|
|
|
|
2009-04-18 14:44:18 +08:00
|
|
|
A: X()()()
|
|
|
|
|
|
|
|
// 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
|
|
|
|
2009-05-13 08:55:26 +08:00
|
|
|
// rdar://6880648
|
|
|
|
#define f(x,y...) y
|
|
|
|
f()
|