aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Warray-parameter-10.c
blob: 378f8afbd34087c404c0006d7c9b26a5f3389aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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);
}