aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/c23-va-opt-1.c
blob: 8ce811b3c72a98044a9780315c375f4185b01289 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test __VA_OPT__ and no "..." arguments in a call to a variable-arguments
   macro accepted for C23.  */
/* { dg-do preprocess } */
/* { dg-options "-std=c23 -pedantic-errors" } */

#define CALL(F, ...) F (7 __VA_OPT__(,) __VA_ARGS__)
#define M(X, ...) X

CALL (a);
CALL (b, 1);
M (x);