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