(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
20010904-1.c
       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  }