summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/paste6.c
blob: 6b6733c4e9d8edb2d97d43d7ae355543540cda82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* 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" } */