diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/20000519-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/20000519-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/20000519-1.c b/gcc/testsuite/gcc.dg/cpp/20000519-1.c new file mode 100644 index 000000000..7cd7daa3a --- /dev/null +++ b/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 |