summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/trad/recurse-1.c
blob: b5fd7af7f5ff5802a585740387b2a6631d33a384 (plain)
1
2
3
4
5
6
7
8
9
10
/* Test for warning of and recovery from recursion in object-like
   macros.  */

/* { dg-do preprocess } */

#define foo foo
foo				/* { dg-error "detected recursion" } */

#define bar a bar b
bar				/* { dg-error "detected recursion" } */