3 * { dg-options "-std=gnu99" }
10 void* p
= __builtin_malloc(sizeof(struct { char p
[16]; }));
15 void g1(int m
, struct foo
{ char p
[++m
]; }* b
) /* { dg-warning "struct" } */
23 if (3 != sizeof(b
->p
))
27 void g2(struct { char p
[++n
]; }* b
) /* { dg-warning "anonymous struct" } */
35 if (4 != sizeof(b
->p
))
39 void g2b(struct { char (*p
)[++n
]; }* b
) /* { dg-warning "anonymous struct" } */
45 typeof(*b
) t
= { &tmp
};
48 if (5 != sizeof(*b
->p
))
65 struct foo
{ char (*p
)[++n
]; } x
;
73 struct bar
{ char (*p
)[++n
]; };
78 auto struct z
{ char (*p
)[++n
]; } g3(void);
83 struct z
g3(void) { };
88 struct { char (*p
)[++n
]; } g4(void) { };
101 if (5 != sizeof *x
.p
)
104 if (7 != sizeof *u
.p
)