aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.dg/cpp/paste12-2.c
blob: 6e2e4f1057d739ab362ad177bba7e03df88da106 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 
   { dg-options "-ftrack-macro-expansion=2" }
   { dg-do preprocess }
 */

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

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