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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [funcdef-var-2.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test ICE on defining function with a name previously declared as a
2
   nonfunction.  Bug 28299 from Bernhard Fischer <aldot@gcc.gnu.org>.
3
   Reduced testcase from Volker Reichelt <reichelt@gcc.gnu.org>.  */
4
 
5
/* { dg-do compile } */
6
/* { dg-options "-Wmissing-prototypes" } */
7
 
8
int foo;
9
/* { dg-error "previous declaration" "previous declaration" { target *-*-* } 8 } */
10
void foo () {} /* { dg-error "redeclared as different kind of symbol" } */
11
/* { dg-warning "no previous prototype" "no previous prototype" { target *-*-* } 10 } */

powered by: WebSVN 2.1.0

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