Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/redecl-15.c
2023-03-06 14:48:14 +01:00

14 lines
376 B
C

/* Test for ICE with redeclaration in inner scope which is accepted
despite incompatible type. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu89" } */
void
f (void)
{
g(); /* { dg-message "note: previous implicit declaration of 'g'" } */
{
void g(); /* { dg-warning "conflicting types for 'g'" } */
}
}