OSDN Git Service

PR tree-optimization/1046
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / always_inline3.c
index b183770..e1a337c 100644 (file)
@@ -1,8 +1,10 @@
 /* { dg-do compile } */
 /* { dg-options "-Winline -O2" } */
+void do_something_evil (void);
 inline __attribute__ ((always_inline)) void
 q2(void)
 {                              /* { dg-error "recursive" "" } */
+  do_something_evil ();
   q2();                        /* { dg-error "called from here" "" } */
   q2();                        /* { dg-error "called from here" "" } */
 }