blob: d6509c35bf2cc6c4568987e0f9fee993a03d5612 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -E %s | grep 'a: 2 + M_0(3)(4)(5);'
2// RUN: %clang_cc1 -E %s | grep 'b: 4 + 4 + 3 + 2 + 1 + M_0(3)(2)(1);'
3
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