diff options
Diffstat (limited to 'test/Sema/array-constraint.c')
-rw-r--r-- | test/Sema/array-constraint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c index b1095bdc19..4d1c2f1600 100644 --- a/test/Sema/array-constraint.c +++ b/test/Sema/array-constraint.c @@ -5,6 +5,12 @@ struct s* t (struct s z[]) { // expected-error {{array has incomplete element return z; } +void ff() { + struct s v, *p; // expected-error {{variable has incomplete type 'struct s'}} + + p = &v; +} + void *k (void l[2]) { // expected-error {{array has incomplete element type}} return l; } |