2009-11-08 09:45:36 +08:00
|
|
|
// RUN: clang-cc -E %s | grep 'a: 2 + M_0(3)(4)(5);'
|
2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -E %s | grep 'b: 4 + 4 + 3 + 2 + 1 + M_0(3)(2)(1);'
|
2006-07-19 16:13:21 +08:00
|
|
|
|
|
|
|
#define M_0(x) M_ ## x
|
|
|
|
#define M_1(x) x + M_0(0)
|
|
|
|
#define M_2(x) x + M_1(1)
|
|
|
|
#define M_3(x) x + M_2(2)
|
|
|
|
#define M_4(x) x + M_3(3)
|
|
|
|
#define M_5(x) x + M_4(4)
|
|
|
|
|
|
|
|
a: M_0(1)(2)(3)(4)(5);
|
|
|
|
b: M_0(5)(4)(3)(2)(1);
|
|
|
|
|