brintos

brintos / llvm-project-archived public Read only

0
0
Text · 376 B · 51e56c3 Raw
31 lines · c
1// RUN: %clang_cc1 %s -E | FileCheck %s2 3#define foo(x) bar x4foo(foo) (2)5// CHECK: bar foo (2)6 7#define m(a) a(w)8#define w ABCD9m(m)10// CHECK: m(ABCD)11 12 13 14// PR4438, PR516315 16// We should get '42' in the argument list for gcc compatibility.17#define A 118#define B 219#define C(x) (x + 1)20 21X: C(22#ifdef A23#if A == 124#if B25    4226#endif27#endif28#endif29    )30// CHECK: X: (42 + 1)31