* gcc.dg/cpp/19960224-2.c, 20000625-2.c, cxxcom2.c, directiv.c, endif.c, if-4.c, if-5.c, if-mop.c, macsyntx.c, paste2.c, paste6.c, paste8.c, redef2.c, strify2.c, strp1.c, tr-warn1.c, tr-warn3.c, tr-warn6.c, undef1.c, undef2.c, widestr1.c: Update tests for new diagnostic messages. * gcc.dg/cpp/macro3.c: New tests. From-SVN: r37099
16 lines
346 B
C
16 lines
346 B
C
/* { 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" } */
|