aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/20000519-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/20000519-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/20000519-1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/20000519-1.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/20000519-1.c
new file mode 100644
index 000000000..7cd7daa3a
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/20000519-1.c
@@ -0,0 +1,11 @@
+/* Regression test for preprocessor crash.
+ Reported by Mathias Froehlich <frohlich@na.uni-tuebingen.de>. */
+/* { dg-do preprocess } */
+/* { dg-options "-ansi" } */
+#define foo
+
+#define __CAT__(a,b,c,d) a##b##c##d
+#define CAT(a,b,c,d) __CAT__(a,b,c,d)
+
+#define bar CAT(,foo,bar,)
+bar