* 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
13 lines
366 B
C
13 lines
366 B
C
/* Regression test for paste appearing at the beginning of a set of
|
|
actual arguments. Original bug exposed by Linux kernel. Problem
|
|
reported by Jakub Jelinek <jakub@redhat.com>. */
|
|
|
|
/* { dg-do compile } */
|
|
|
|
extern int foo(int x);
|
|
|
|
#define bar(x) foo(x)
|
|
#define baz(x) bar(##x)
|
|
|
|
int quux(int y) { return baz(y); } /* { dg-warning "valid preprocessing" } */
|