OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [recurse-2.c] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Test for warning of and recovery from recursion in function-like
2
   macros.  */
3
 
4
/* { dg-do preprocess } */
5
 
6
#define foo() foo()
7
foo();                          /* { dg-error "detected recursion" } */
8
 
9
#define bar() bar baz() bar
10
bar();                          /* { dg-bogus "detected recursion" } */
11
 
12
#define baz() foo()
13
baz();                         /* { dg-error "detected recursion" } */
14
 
15
#define a(x) x(a)
16
a(a);                          /* { dg-error "detected recursion" } */

powered by: WebSVN 2.1.0

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