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-1.c] - Blame information for rev 867

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
3
   <aldot@gcc.gnu.org>.  */
4
/* { dg-do compile } */
5
/* { dg-options "-Wmissing-prototypes" } */
6
 
7
extern __typeof(foo) foo __asm__(""); /* { dg-error "undeclared" } */
8
/* { dg-error "previous declaration" "previous declaration" { target *-*-* } 7 } */
9
void *foo (void) {} /* { dg-error "redeclared as different kind of symbol" } */
10
/* { dg-warning "no previous prototype" "no previous prototype" { target *-*-* } 9 } */

powered by: WebSVN 2.1.0

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