Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / gcc.dg / redecl-15.c
blobc4ac76cc8cfd49339de775f8f102694201f6a2d8
1 /* Test for ICE with redeclaration in inner scope which is accepted
2 despite incompatible type. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
7 void
8 f (void)
10 g(); /* { dg-warning "warning: previous implicit declaration of 'g' was here" } */
12 void g(); /* { dg-warning "warning: conflicting types for 'g'" } */