Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -E %s | grep 'a: 2 + M_0(3)(4)(5);' |
Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 2 | // RUN: clang-cc -E %s | grep 'b: 4 + 4 + 3 + 2 + 1 + M_0(3)(2)(1);' |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 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 | |
| 11 | a: M_0(1)(2)(3)(4)(5); |
| 12 | b: M_0(5)(4)(3)(2)(1); |
| 13 | |