llvm-project/clang/test/Preprocessor/macro_expand.c

20 lines
299 B
C
Raw Normal View History

// RUN: clang-cc -E %s | grep '^A: Y$' &&
// RUN: clang-cc -E %s | grep '^B: f()$' &&
// RUN: clang-cc -E %s | grep '^C: for()$'
2006-10-06 10:59:40 +08:00
#define X() Y
#define Y() X
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
// rdar://6880648
#define f(x,y...) y
f()