macro_rescan_varargs.c 344 B

12345678910111213
  1. // RUN: %clang_cc1 -E %s | FileCheck -strict-whitespace %s
  2. #define LPAREN (
  3. #define RPAREN )
  4. #define F(x, y) x + y
  5. #define ELLIP_FUNC(...) __VA_ARGS__
  6. 1: ELLIP_FUNC(F, LPAREN, 'a', 'b', RPAREN); /* 1st invocation */
  7. 2: ELLIP_FUNC(F LPAREN 'a', 'b' RPAREN); /* 2nd invocation */
  8. // CHECK: 1: F, (, 'a', 'b', );
  9. // CHECK: 2: 'a' + 'b';