Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/auto-init-padding-9.c

raw
1 /* Verify zero initialization for array type with structure element with
2 padding. */
3 /* { dg-do compile } */
4 /* { dg-options "-O -ftrivial-auto-var-init=zero" } */
5
6 struct test_trailing_hole {
7 int one;
8 int two;
9 int three;
10 char four;
11 /* "sizeof(unsigned long) - 1" byte padding hole here. */
12 };
13
14 void bar (void *);
15
16 void foo ()
17 {
18 struct test_trailing_hole var[10];
19 bar (var);
20 }
21
22 /* { dg-final { scan-assembler-times {stp\tq[0-9]+, q[0-9]+,} 5 } } */