blob: 4b70bb9bb3a4951fde383f56fff67135c0f9f355 [file] [log] [blame]
Chris Lattner5265af52007-07-19 00:42:40 +00001// 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;
6}
7
8void *k (void l[2]) { // expected-error {{array has incomplete element type}}
9 return l;
10}
11