blob: e69a9a6367f8c90decc9c6fab6a19a1792f01fb1 [file] [log] [blame]
/* { dg-do preprocess } */
/* { dg-options "" } */
int foo(int, ...);
#define a(x, y...) foo(x, ##y)
a(1)
a(1, 2, 3)
#define b(x, y, z...) foo(x, ##y)
b(1, 2, 3) /* { dg-warning "valid preprocessing token" } */
#define c(x, y, z...) foo(x, ##z)
c(1, 2)
c(1, 2, 3)
#define d(x) fo(##x)
d(1) /* { dg-warning "valid preprocessing token" } */
/* { dg-warning "expanded from" "" { target *-*-* } 9 } */
/* { dg-warning "expanded from" "" { target *-*-* } 14 } */