Chris Lattner | 5265af5 | 2007-07-19 00:42:40 +0000 | [diff] [blame^] | 1 | // RUN: clang -parse-ast-check %s |
2 | |||||
3 | struct s; | ||||
4 | struct s* t (struct s z[]) { // expected-error {{array has incomplete element type}} | ||||
5 | return z; | ||||
6 | } | ||||
7 | |||||
8 | void *k (void l[2]) { // expected-error {{array has incomplete element type}} | ||||
9 | return l; | ||||
10 | } | ||||
11 |