Debian Codegraph @

gcc/testsuite/gcc.target/i386/auto-init-padding-5.c

raw
1 /* Verify zero initialization for structure type automatic variables with
2 tail padding. */
3 /* { dg-do compile } */
4 /* { dg-options "-ftrivial-auto-var-init=zero -fdump-rtl-expand -march=x86-64 -mtune=generic -msse" } */
5
6 struct test_trailing_hole {
7 char *one;
8 char *two;
9 char *three;
10 char four;
11 /* "sizeof(unsigned long) - 1" byte padding hole here. */
12 };
13
14 int foo ()
15 {
16 struct test_trailing_hole var;
17 return var.four;
18 }
19
20 /* { dg-final { scan-rtl-dump-times "const_int 0 \\\[0\\\]\\\) repeated x16" 1 "expand" } } */
21