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 -fno-ipa-icf" } */
11 void f(void) __attribute__ ((__noreturn__
));
12 void _exit(int status
) __attribute__ ((__noreturn__
));
16 void g() /* { dg-warning "might be candidate" } */
28 } /* { dg-bogus "does return" } */
30 int h() /* { dg-warning "might be candidate" } */
35 } /* { dg-bogus "end of non-void function" } */
37 int k() /* { dg-warning "might be candidate" } */
42 } /* { dg-warning "control reaches" } */