OSDN Git Service

2007-07-06 Josh Conner <jconner@apple.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / paste6.c
1 /* Regression test for paste appearing at the beginning of a set of
2    actual arguments.  Original bug exposed by Linux kernel.  Problem
3    reported by Jakub Jelinek <jakub@redhat.com>.  */
4
5 /* { dg-do compile } */
6
7 extern int foo(int x);
8
9 #define bar(x) foo(x)
10 #define baz(x) bar(##x)
11
12 int quux(int y) { return baz(y); }  /* { dg-error "valid preprocessing" } */