aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr59827.c
blob: 77e1e9ca20607143093826f9da9206dd41b8034d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/59827 */
/* { dg-do compile } */

int
foo (int p[2][]) /* { dg-error "array type has incomplete element type" } */
{
  return p[0][0];
}

void
bar (void)
{
  int p[2][1];
  foo (p); /* { dg-error "type of formal parameter 1 is incomplete" } */
}