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; X y[31]; int c; } Y;
11 
12 Y y[2];
13 
main(void)14 int main(void)
15 {
16   if (((char *)&y[1] - (char *)&y[0]) & 31)
17     abort ();
18   exit (0);
19 }
20