blob: fbd4b09b40e33f7cd1a3ef272af686abf102764a [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 Lattnerce7f4cc2007-08-26 06:48:28 +00005 return z;
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