URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.