1 /* PR optimization/13394 */
2 /* Origin: Carlo Wood <carlo@gcc.gnu.org> */
4 /* Verify that a bogus "function does return" warning is not issued
5 in presence of tail recursion within a noreturn function. */
7 /* { dg-do compile } */
8 /* { dg-options "-O2 -Wreturn-type -Wmissing-noreturn" } */
11 void f(void) __attribute__ ((__noreturn__
));
12 void _exit(int status
) __attribute__ ((__noreturn__
));
21 } /* { dg-warning "possible candidate" } */
28 } /* { dg-bogus "does return" } */
35 } /* { dg-bogus "end of non-void function" } */
42 } /* { dg-warning "end of non-void function" } */