blob: 6c6415a8ee5301e5db9a71bab6c542fa09039e11 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -E %s | FileCheck -strict-whitespace %s
Edward O'Callaghanb396a372009-10-27 02:36:32 +00002
Reid Spencer5f016e22007-07-11 17:01:13 +00003#define LPAREN (
4#define RPAREN )
5#define F(x, y) x + y
6#define ELLIP_FUNC(...) __VA_ARGS__
7
81: ELLIP_FUNC(F, LPAREN, 'a', 'b', RPAREN); /* 1st invocation */
92: ELLIP_FUNC(F LPAREN 'a', 'b' RPAREN); /* 2nd invocation */
10
Edward O'Callaghanb396a372009-10-27 02:36:32 +000011// CHECK: 1: F, (, 'a', 'b', );
12// CHECK: 2: 'a' + 'b';
13