summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/macro_rescan.c
blob: 83a1975b4e5f5b6112272214283a56a0c4304712 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s

#define M1(a) (a+1)
#define M2(b) b

int ei_1 = M2(M1)(17);
// CHECK: {{^}}int ei_1 = (17 +1);{{$}}

int ei_2 = (M2(M1))(17);
// CHECK: {{^}}int ei_2 = (M1)(17);{{$}}

OpenPOWER on IntegriCloud