blob: ed498419068fa6cf42ab097fabf537ac9952632e [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}}
Chris Lattnerf13ebf02007-08-02 22:41:43 +00005 return z; // expected-warning {{incompatible pointer type returning}}
Chris Lattner5265af52007-07-19 00:42:40 +00006}
7
8void *k (void l[2]) { // expected-error {{array has incomplete element type}}
9 return l;
10}
11