aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro4.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro4.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro4.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro4.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/macro4.c
new file mode 100644
index 000000000..ceaf8ddbf
--- /dev/null
+++ b/gcc-4.9/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