Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/always_inline3.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fgnu89-inline" } */ | |
3 int do_something_evil (void); | |
4 inline __attribute__ ((always_inline)) void | |
5 q2(void) /* { dg-error "recursive inlining" } */ | |
6 { | |
7 if (do_something_evil ()) | |
8 return; | |
9 q2(); /* { dg-message "called from here" } */ | |
10 q2(); /* With -O2 we don't warn here, it is eliminated by tail recursion. */ | |
11 } |