Edward O'Callaghan | b396a37 | 2009-10-27 02:36:32 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -E %s | FileCheck -strict-whitespace %s |
| 2 | |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 3 | #define LPAREN ( |
| 4 | #define RPAREN ) |
| 5 | #define F(x, y) x + y |
| 6 | #define ELLIP_FUNC(...) __VA_ARGS__ |
| 7 | |
| 8 | 1: ELLIP_FUNC(F, LPAREN, 'a', 'b', RPAREN); /* 1st invocation */ |
| 9 | 2: ELLIP_FUNC(F LPAREN 'a', 'b' RPAREN); /* 2nd invocation */ |
| 10 | |
Edward O'Callaghan | b396a37 | 2009-10-27 02:36:32 +0000 | [diff] [blame] | 11 | // CHECK: 1: F, (, 'a', 'b', ); |
| 12 | // CHECK: 2: 'a' + 'b'; |
| 13 | |