repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
Preprocessor
/
macro_fn_disable_expand.c
blob
51e56c3dca913058259ff25c00a5307c61a48541
1
// RUN: %clang_cc1 %s -E | FileCheck %s
2
3
#define foo(x) bar x
4
foo
(
foo
) (
2
)
5
// CHECK: bar foo (2)
6
7
#define m(a) a(w)
8
#define w ABCD
9
m
(
m
)
10
// CHECK: m(ABCD)
11
12
13
14
// PR4438, PR5163
15
16
// We should get '42' in the argument list for gcc compatibility.
17
#define A 1
18
#define B 2
19
#define C(x) (x + 1)
20
21
X
:
C
(
22
#ifdef A
23
#if A == 1
24
#if B
25
42
26
#endif
27
#endif
28
#endif
29
)
30
// CHECK: X: (42 + 1)