blob: f102ddddafc745e4a8fce1a94884012ebd935cf8 [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00001// RUN: clang-cc -E %s | grep 'a: 2 + M_0(3)(4)(5);'
Daniel Dunbard7d5f022009-03-24 02:24:46 +00002// RUN: clang-cc -E %s | grep 'b: 4 + 4 + 3 + 2 + 1 + M_0(3)(2)(1);'
Reid Spencer5f016e22007-07-11 17:01:13 +00003
4#define M_0(x) M_ ## x
5#define M_1(x) x + M_0(0)
6#define M_2(x) x + M_1(1)
7#define M_3(x) x + M_2(2)
8#define M_4(x) x + M_3(3)
9#define M_5(x) x + M_4(4)
10
11a: M_0(1)(2)(3)(4)(5);
12b: M_0(5)(4)(3)(2)(1);
13