URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [recurse-2.c] - Rev 689
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" } */