Debian Codegraph @

gcc/testsuite/gcc.dg/redecl-15.c

raw
1 /* Test for ICE with redeclaration in inner scope which is accepted
2 despite incompatible type. */
3 /* Origin: Joseph Myers <[email protected]> */
4 /* { dg-do compile } */
5 /* { dg-options "-std=gnu89" } */
6
7 void
8 f (void)
9 {
10 g(); /* { dg-message "note: previous implicit declaration of 'g'" } */
11 {
12 void g(); /* { dg-warning "conflicting types for 'g'" } */
13 }
14 }