Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr59827.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 } |