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}} | ||||
Chris Lattner | ce7f4cc | 2007-08-26 06:48:28 +0000 | [diff] [blame^] | 5 | return z; |
Chris Lattner | 5265af5 | 2007-07-19 00:42:40 +0000 | [diff] [blame] | 6 | } |
7 | |||||
8 | void *k (void l[2]) { // expected-error {{array has incomplete element type}} | ||||
9 | return l; | ||||
10 | } | ||||
11 |