Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / funcdef-var-1.c
blobcef7026c3df257b444caff32154116a92e146485
1 /* 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" } */
7 extern __typeof(foo) foo __asm__(""); /* { dg-error "undeclared" } */
8 /* { dg-message "note: previous declaration" "previous declaration" { target *-*-* } .-1 } */
9 void *foo (void) {} /* { dg-error "redeclared as different kind of symbol" } */
10 /* { dg-warning "no previous prototype" "no previous prototype" { target *-*-* } .-1 } */