OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [pr20368-2.c] - Diff between revs 298 and 384

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;
{
{
}
}
 
 

powered by: WebSVN 2.1.0

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