Dmitri Gribenko | 8448e1a | 2013-02-09 16:41:47 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 2 | |
Dmitri Gribenko | 8448e1a | 2013-02-09 16:41:47 +0000 | [diff] [blame^] | 3 | #define M1(a) (a+1) |
| 4 | #define M2(b) b |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 5 | |
Dmitri Gribenko | 8448e1a | 2013-02-09 16:41:47 +0000 | [diff] [blame^] | 6 | int ei_1 = M2(M1)(17); |
| 7 | // CHECK: {{^}}int ei_1 = (17 +1);{{$}} |
| 8 | |
| 9 | int ei_2 = (M2(M1))(17); |
| 10 | // CHECK: {{^}}int ei_2 = (M1)(17);{{$}} |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 11 | |