Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / always_inline3.c
blob80ea314741b9310bf84de209b19835b4305b2b77
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 ())
8 return;
9 q2(); /* { dg-error "called from here" } */
10 q2(); /* With -O2 we don't warn here, it is eliminated by tail recursion. */