| 1 |
/* Test ICE on defining function with a name previously declared as a |
| 2 |
nonfunction. Bug 28299 from Bernhard Fischer <[email protected]>. |
| 3 |
Reduced testcase from Volker Reichelt <[email protected]>. */ |
| 4 |
|
| 5 |
/* { dg-do compile } */ |
| 6 |
/* { dg-options "-Wmissing-prototypes" } */ |
| 7 |
|
| 8 |
int foo; |
| 9 |
/* { dg-message "note: previous declaration" "previous declaration" { target *-*-* } .-1 } */ |
| 10 |
void foo () {} /* { dg-error "redeclared as different kind of symbol" } */ |
| 11 |
/* { dg-warning "no previous prototype" "no previous prototype" { target *-*-* } .-1 } */ |