Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Preprocessor / macro_fn_disable_expand.c
blob51e56c3dca913058259ff25c00a5307c61a48541
1 // RUN: %clang_cc1 %s -E | FileCheck %s
3 #define foo(x) bar x
4 foo(foo) (2)
5 // CHECK: bar foo (2)
7 #define m(a) a(w)
8 #define w ABCD
9 m(m)
10 // CHECK: m(ABCD)
14 // PR4438, PR5163
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)
21 X: C(
22 #ifdef A
23 #if A == 1
24 #if B
26 #endif
27 #endif
28 #endif
30 // CHECK: X: (42 + 1)