summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/macro_rescan2.c
blob: 6914ae0ac5f36013ee3e8df206d6529884e01110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang-cc %s -E | grep 'a: 2\*f(9)' &&
// RUN: clang-cc %s -E | grep 'b: 2\*9\*g'

#define f(a) a*g 
#define g f 
a: f(2)(9) 

#undef f
#undef g

#define f(a) a*g 
#define g(a) f(a) 

b: f(2)(9)

OpenPOWER on IntegriCloud