/* 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" } } */