summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/paste12.c
blob: e61ec51433c067cbf5a2e7d7a59b6435db4aa61b (plain)
1
2
3
4
5
6
7
8
/* { dg-do preprocess } */

/* Test correct diagnostics when pasting in #include.
   Source: PR preprocessor/6780.  */

#define inc2(a,b) <##a.b>
#define INC(X) inc2(X,h)
#include INC(stdio) /* { dg-error "pasting \"<\" and \"stdio\" does not" } */