1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 int do_something_evil (void);
4 inline __attribute__ ((always_inline
)) void
5 q2(void) /* { dg-error "recursive inlining" } */
7 if (do_something_evil ())
9 q2(); /* { dg-error "called from here" } */
10 q2(); /* With -O2 we don't warn here, it is eliminated by tail recursion. */