blob: cb4d759e6b87df1902525b3455ae132903fab04b [file] [log] [blame]
/* If some target has a Max alignment less than 32, please create
a #ifdef around the alignment and add your alignment. */
#ifdef __pdp11__
#define alignment 2
#else
#define alignment 32
#endif
typedef struct x { int a; int b; } __attribute__((aligned(alignment))) X;
typedef struct y { X x[32]; int c; } Y;
Y y[2];
int main(void)
{
if (((char *)&y[1] - (char *)&y[0]) & 31)
abort ();
exit (0);
}