]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr59827.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr59827.c
1 /* PR middle-end/59827 */
2 /* { dg-do compile } */
3
4 int
5 foo (int p[2][]) /* { dg-error "array type has incomplete element type" } */
6 {
7 return p[0][0];
8 }
9
10 void
11 bar (void)
12 {
13 int p[2][1];
14 foo (p); /* { dg-error "type of formal parameter 1 is incomplete" } */
15 }