gcc/testsuite/gcc.dg/cpp/macro4.c
raw| 1 | /* Copyright (C) 2000 Free Software Foundation, Inc. */ |
| 2 | |
| 3 | /* { dg-do preprocess } */ |
| 4 | |
| 5 | /* Test source Neil Booth. */ |
| 6 | |
| 7 | #define glue(x, y) x ## y |
| 8 | #define xglue(x, y) glue (x, y) |
| 9 | |
| 10 | /* Should expand to glue (1, 2), then 12. */ |
| 11 | #if glue (xgl, ue) (1, 2) != 12 |
| 12 | #error glue macro |
| 13 | #endif |