URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR c/23075 */
|
/* PR c/23075 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -Wreturn-type" } */
|
/* { dg-options "-O2 -Wreturn-type" } */
|
|
|
int
|
int
|
foo (void)
|
foo (void)
|
{
|
{
|
return; /* { dg-warning "with no value" } */
|
return; /* { dg-warning "with no value" } */
|
} /* { dg-bogus "control reaches end" } */
|
} /* { dg-bogus "control reaches end" } */
|
|
|
int
|
int
|
bar (void)
|
bar (void)
|
{
|
{
|
} /* { dg-warning "control reaches end" } */
|
} /* { dg-warning "control reaches end" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.