summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/include3.c
blob: 8bea2b78ee803ec3445534bb0432a6d099a0915b (plain)
1
2
3
4
5
6
7
/* Unpatched, this file would include "inc/ foo.h" (note the space)  */

#define PREINC_XSTR(str)             #str
#define PREINC_STR(str)              PREINC_XSTR(str)
#define COMP_INC(comp,file)          PREINC_STR(comp/file)

#include COMP_INC(inc, foo.h)