Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +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 | d4c473b | 2007-08-26 06:48:28 +0000 | [diff] [blame] | 5 | return z; |
Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 6 | } |
7 | |||||
8 | void *k (void l[2]) { // expected-error {{array has incomplete element type}} | ||||
9 | return l; | ||||
10 | } | ||||
11 |