1 /* Bogus warnings claiming we fall off the end of a non-void function.
2 By Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/27/2000. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -Wreturn-type" } */
6 extern void abort (void) __attribute__ ((__noreturn__
));
15 } /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
24 } /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
33 } /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
42 } /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */
46 return foo1 (i
) + foo2 (i
) + foo3 (i
) + foo4 (i
);