blob: c81e5ff28b0b7a9281b8b0f58fc9cca7adc57797 [file] [log] [blame]
/* Verify zero initialization for array type with structure element with
padding. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=zero" } */
struct test_trailing_hole {
int one;
int two;
int three;
char four;
/* "sizeof(unsigned long) - 1" byte padding hole here. */
};
int foo ()
{
struct test_trailing_hole var[10];
return var[2].four;
}
/* { dg-final { scan-assembler-times "stp\tq0, q0," 5 } } */