repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix the clang-wpa example.
[clang.git]
/
test
/
Preprocessor
/
macro_expand.c
blob
4dc03576cf53770911f0209555600c76bc30a9d3
1
// RUN: %clang_cc1 -E %s | grep '^A: Y$'
2
// RUN: %clang_cc1 -E %s | grep '^B: f()$'
3
// RUN: %clang_cc1 -E %s | grep '^C: for()$'
4
5
#define X() Y
6
#define Y() X
7
8
A
:
X
()()()
9
10
// PR3927
11
#define f(x) h(x
12
#define for(x) h(x
13
#define h(x) x()
14
B
:
f
(
f
))
15
C
:
for
(
for
))
16
17
// rdar://6880648
18
#define f(x,y...) y
19
f
()