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

     1  typedef struct
     2  {
     3    short a __attribute__ ((aligned (2),packed));
     4    short *ap[2]  __attribute__ ((aligned (2),packed));
     5  } A;
     6  
     7  main ()
     8  {
     9    short i, j = 1;
    10    A a, *ap = &a;
    11    ap->ap[j] = &i;
    12    exit (0);
    13  }