blob: e17a621e6f47b2869b986a03d6fb8a4bf1e319d5 [file] [log] [blame]
/* Verify zero initialization for structure type automatic variables with
tail padding. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=zero -fdump-rtl-expand -march=x86-64 -mtune=generic -msse" } */
struct test_trailing_hole {
char *one;
char *two;
char *three;
char four;
/* "sizeof(unsigned long) - 1" byte padding hole here. */
};
int foo ()
{
struct test_trailing_hole var;
return var.four;
}
/* { dg-final { scan-rtl-dump-times "const_int 0 \\\[0\\\]\\\) repeated x16" 1 "expand" } } */