summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/20000519-1.c
blob: 7cd7daa3ad20d79c69592491c5cb894e91b12e31 (plain)
1
2
3
4
5
6
7
8
9
10
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