summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/macro_rescan2.c
blob: 826f4eefbebc4561a0b367ac800338db3d453243 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 %s -E | grep 'a: 2\*f(9)'
// RUN: %clang_cc1 %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)