xref: /minix3/external/bsd/llvm/dist/clang/test/Preprocessor/macro_expand.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
2 
3 #define X() Y
4 #define Y() X
5 
6 A: X()()()
7 // CHECK: {{^}}A: Y{{$}}
8 
9 // PR3927
10 #define f(x) h(x
11 #define for(x) h(x
12 #define h(x) x()
13 B: f(f))
14 C: for(for))
15 
16 // CHECK: {{^}}B: f(){{$}}
17 // CHECK: {{^}}C: for(){{$}}
18 
19 // rdar://6880648
20 #define f(x,y...) y
21 f()
22