OSDN Git Service

* toplev.c (warn_deprecated_use): Correct logic for saying "type"
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / return-type-1.c
1 /* Missing warning for falling off the end of a non-void function.
2    egcs-1.1.2 passes, egcs-ss-19990428 fails.
3    http://gcc.gnu.org/ml/gcc-bugs/1999-03n/msg00221.html */
4 /* { dg-do compile } */
5 /* { dg-options "-O -Wreturn-type" } */
6 int
7 foo(void)
8 {
9 } /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */