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

     1  /* If some target has a Max alignment less than 32, please create
     2     a #ifdef around the alignment and add your alignment.  */
     3  #ifdef __pdp11__
     4  #define alignment 2
     5  #else
     6  #define alignment 32
     7  #endif
     8  
     9  typedef struct x { int a; int b; } __attribute__((aligned(alignment))) X;
    10  typedef struct y { X x[32]; int c; } Y;
    11  
    12  Y y[2];
    13  
    14  int main(void)
    15  {
    16    if (((char *)&y[1] - (char *)&y[0]) & 31)
    17      abort ();
    18    exit (0);
    19  }