blob: ed498419068fa6cf42ab097fabf537ac9952632e [file] [log] [blame]
Chris Lattner4b009652007-07-25 00:24:17 +00001// RUN: clang -parse-ast-check %s
2
3struct s;
4struct s* t (struct s z[]) { // expected-error {{array has incomplete element type}}
Chris Lattner8a6ac292007-08-02 22:41:43 +00005 return z; // expected-warning {{incompatible pointer type returning}}
Chris Lattner4b009652007-07-25 00:24:17 +00006}
7
8void *k (void l[2]) { // expected-error {{array has incomplete element type}}
9 return l;
10}
11