URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* ICE with -Wstrict-prototypes and typeof an undeclared function.
|
/* ICE with -Wstrict-prototypes and typeof an undeclared function.
|
Bug 20368. Test with -Wmissing-prototypes. */
|
Bug 20368. Test with -Wmissing-prototypes. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wmissing-prototypes" } */
|
/* { dg-options "-Wmissing-prototypes" } */
|
|
|
extern __typeof (f) g; /* { dg-error "'f' undeclared here \\(not in a function\\)" } */
|
extern __typeof (f) g; /* { dg-error "'f' undeclared here \\(not in a function\\)" } */
|
|
|
int
|
int
|
f (x) /* { dg-warning "no previous prototype for 'f'" } */
|
f (x) /* { dg-warning "no previous prototype for 'f'" } */
|
float x;
|
float x;
|
{
|
{
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.