parent
1cb0e61e98
commit
3f26dc0bf6
|
@ -17,3 +17,7 @@ void func() {
|
||||||
void b; // expected-error {{variable has incomplete type 'void'}}
|
void b; // expected-error {{variable has incomplete type 'void'}}
|
||||||
struct foo f; // expected-error {{variable has incomplete type 'struct foo'}}
|
struct foo f; // expected-error {{variable has incomplete type 'struct foo'}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int h[];
|
||||||
|
int (*i)[] = &h+1; // expected-error {{arithmetic on pointer to incomplete type 'int (*)[]'}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue