Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/Warray-parameter-10.c

21 lines
340 B
C

/* PR c/102759 - ICE calling a function taking an argument redeclared
without a prototype.
{ dg-do compile }
{ dg-options "-Wall" } */
void f (void)
{
void gia (int[2]);
void g ();
}
/* Redeclaring the g(int[]) above without a prototype loses it. */
void gia ();
void g (int[2]);
void h (void )
{
gia (gia);
gia (g);
}