1 /* { dg-do compile } */
2 /* { dg-options "-W -Wall" } */
4 typedef __SIZE_TYPE__
size_t;
5 extern void* malloc (size_t);
6 extern void free (void*);
7 extern void* realloc (void*, size_t);
10 void* (* _malloc
) (size_t);
11 void (* _free
) (void*);
12 void* (* _realloc
) (void*, size_t);
15 struct vtable mtable
= {
18 }; /* { dg-warning "missing initializer" "warning regression" { target *-*-* } {18} } */
19 /* { dg-message "declared here" "warning regression 2" { target *-*-* } {12} } */
21 /* With designated initializers, we assume you meant to leave out the
22 initialization of any blank fields. */
23 struct vtable mtable2
= {
28 struct vtable mtable3
= {