OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [vararg3.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Copyright (C) 2002 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do preprocess } */
4
/* { dg-options "-std=c99" } */
5
 
6
/* Source: Neil Booth, 6 Aug 2002.
7
 
8
   Tests that we DTRT with varargs commas for a single-parameter macro
9
   when in standards-conforming mode.  */
10
 
11
#define f(...) , ## __VA_ARGS__
12
 
13
/* The comma from f's expansion should be retained (standards
14
   conforming mode only).  Tests that it isn't in non-standards mode
15
   include macro8.c and vararg1.c.  */
16
#if 2 f() 3               /* { dg-bogus "missing binary operator" } */
17
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.