OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [return-type-1.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* Missing warning for falling off the end of a non-void function.
/* Missing warning for falling off the end of a non-void function.
   egcs-1.1.2 passes, egcs-ss-19990428 fails.
   egcs-1.1.2 passes, egcs-ss-19990428 fails.
   http://gcc.gnu.org/ml/gcc-bugs/1999-03n/msg00221.html */
   http://gcc.gnu.org/ml/gcc-bugs/1999-03n/msg00221.html */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O -Wreturn-type" } */
/* { dg-options "-O -Wreturn-type" } */
int
int
foo(void)
foo(void)
{
{
} /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */
} /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.