1extern void abort (void);
2
3typedef struct Bar {
4      char c[129];
5} Bar __attribute__((__aligned__(128)));
6
7typedef struct Foo {
8      Bar bar[4];
9} Foo;
10
11Foo foo[4];
12
13int main()
14{
15   int i, j;
16   Foo *foop = &foo[0];
17
18   for (i=0; i < 4; i++) {
19      Bar *bar = &foop->bar[i];
20      for (j=0; j < 129; j++) {
21         bar->c[j] = 'a' + i;
22      }
23   }
24
25   if (foo[0].bar[3].c[128] != 'd')
26     abort ();
27   return 0;
28}
29