array-constraint.c revision 6f66c26c9482d049375312f9dad2b7f7c18c4cc2
1// RUN: clang -parse-ast-check %s 2 3struct s; 4struct s* t (struct s z[]) { // expected-error {{array has incomplete element type}} 5 return z; // expected-error {{incompatible pointer type returning}} 6} 7 8void *k (void l[2]) { // expected-error {{array has incomplete element type}} 9 return l; 10} 11 12