gcc/testsuite/gcc.dg/cpp/paste12.c
raw| 1 | /* |
| 2 | { dg-options "-ftrack-macro-expansion=0" } |
| 3 | { dg-do preprocess } |
| 4 | */ |
| 5 | |
| 6 | /* Test correct diagnostics when pasting in #include. |
| 7 | Source: PR preprocessor/6780. */ |
| 8 | |
| 9 | #define inc2(a,b) <##a.b> |
| 10 | #define INC(X) inc2(X,h) |
| 11 | #include INC(stdio) /* { dg-error "pasting \"<\" and \"stdio\" does not" } */ |