OpenCores
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" } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.