summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/macro_rescan2.c
blob: 9c198c995a5431fbfc2385563bfab5b5d221d8ef (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