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 | f13ebf0 | 2007-08-02 22:41:43 +0000 | [diff] [blame] | 5 | return z; // expected-warning {{incompatible pointer type returning}} |
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 |