Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / array-7.c
blob9e70b26821a8fe4db1781c63e653d126e34603d8
1 /* Test for array of incomplete structure type - Zack Weinberg in
2 <http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00108.html>. */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
6 struct foo;
8 void
9 f (void)
11 struct foo { int a; int b; };
14 struct foo array[5]; /* { dg-error "array type has incomplete element type" } */