summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/vararg4.c
blob: 460cebf28331b010c6a327857f5bd9c528f3543c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (C) 2002 Free Software Foundation, Inc.  */

/* { dg-do preprocess } */
/* { dg-options -std=gnu99 } */

/* Source: Neil Booth, 6 Aug 2002.

   Tests that we DTRT with varargs commas.  */

#define g(a, ...) a , ## __VA_ARGS__

/* The comma from g's expansion should be retained.  */
#if g (2, ) 3		  /* { dg-bogus "missing binary operator" } */
#endif