URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [recurse-2.c] - Rev 816
Compare with Previous | Blame | View Log
/* Test for warning of and recovery from recursion in function-like macros. */ /* { dg-do preprocess } */ #define foo() foo() foo(); /* { dg-error "detected recursion" } */ #define bar() bar baz() bar bar(); /* { dg-bogus "detected recursion" } */ #define baz() foo() baz(); /* { dg-error "detected recursion" } */ #define a(x) x(a) a(a); /* { dg-error "detected recursion" } */