blob: b0f3acb2f52863b2bef538091ef9b75c45f485db [file] [log] [blame]
/* Verify pattern initialization for array type with structure element with
padding. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=pattern -fdump-rtl-expand" } */
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-rtl-dump-times "0xfffffffffffffffe\\\]\\\) repeated x16" 1 "expand" } } */