(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
auto-init-padding-8.c
       1  /* Verify pattern initialization for structure type automatic variables with
       2     padding and has explicit initialization.  */
       3  /* { dg-do compile } */
       4  /* { dg-options "-ftrivial-auto-var-init=pattern" } */
       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  int foo ()
      15  {
      16    struct test_trailing_hole var = {.one = 1,.two = 2, .four = 'c'};
      17    return var.four;
      18  }
      19  
      20  /* { dg-final { scan-assembler "stp\txzr, xzr," } } */
      21  
      22