Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/trad/recurse-2.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 /* Test for warning of and recovery from recursion in function-like |
2 macros. */ | |
3 | |
4 /* { dg-do preprocess } */ | |
5 | |
6 #define foo() foo() | |
131 | 7 foo(); /* { dg-error "-:detected recursion" } */ |
111 | 8 |
9 #define bar() bar baz() bar | |
10 bar(); /* { dg-bogus "detected recursion" } */ | |
11 | |
12 #define baz() foo() | |
131 | 13 baz(); /* { dg-error "-:detected recursion" } */ |
111 | 14 |
15 #define a(x) x(a) | |
131 | 16 a(a); /* { dg-error "-:detected recursion" } */ |