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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [paste8.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 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.