diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/macro4.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/macro4.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/macro4.c b/gcc/testsuite/gcc.dg/cpp/macro4.c new file mode 100644 index 000000000..ceaf8ddbf --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/macro4.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2000 Free Software Foundation, Inc. */ + +/* { dg-do preprocess } */ + +/* Test source Neil Booth. */ + +#define glue(x, y) x ## y +#define xglue(x, y) glue (x, y) + +/* Should expand to glue (1, 2), then 12. */ +#if glue (xgl, ue) (1, 2) != 12 +#error glue macro +#endif |