modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/align-nest.c (about)

     1  /* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
     2  
     3  void foo(int n)
     4  {
     5    typedef struct
     6    {
     7      int value;
     8    } myint;
     9    
    10    struct S
    11    {
    12      int i[n];
    13      unsigned int b:1;
    14      myint mi;
    15    } __attribute__ ((packed)) __attribute__ ((aligned (4)));
    16  
    17    struct S s[2];
    18    int k;
    19    
    20    for (k = 0; k < 2; k ++)
    21      s[k].mi.value = 0;
    22  }
    23  
    24  int main ()
    25  {
    26    foo (2);
    27    return 0;
    28  }
    29