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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste8.c] - Blame information for rev 327

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do preprocess } */
2
/* { dg-options "" } */
3
 
4
int foo(int, ...);
5
 
6
#define a(x, y...) foo(x, ##y)
7
a(1)
8
a(1, 2, 3)
9
#define b(x, y, z...) foo(x, ##y)
10
b(1, 2, 3)                      /* { dg-error "valid preprocessing token" } */
11
#define c(x, y, z...) foo(x, ##z)
12
c(1, 2)
13
c(1, 2, 3)
14
#define d(x) fo(##x)
15
d(1)                            /* { dg-error "valid preprocessing token" } */

powered by: WebSVN 2.1.0

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