blob: a4f49f26db14263128bfa003bb1393bcbd0ad884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* PR middle-end/97943 */
/* { dg-do compile } */
/* { dg-options "" } */
union U { int a; char b[] __attribute__((aligned (2 * sizeof (int)))); };
struct V { int a; union U b; };
void
foo (union U *u, struct V *v)
{
__builtin_clear_padding (u); /* { dg-error "flexible array member" "does not have well defined padding bits" } */
__builtin_clear_padding (v); /* { dg-error "flexible array member" "does not have well defined padding bits" } */
}
|