Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / consistency.vlad / layout / s-double-a-pointer.c
blobbdd5f1f9030687af6d34b917fa7113bad5d0a3c6
1 #include <stdio.h>
3 static struct sss{
4 double f;
5 char * a[10];
6 } sss;
8 #define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
10 int main (void) {
11 printf ("++++Array of pointer in struct starting with double:\n");
12 printf ("size=%d,align=%d\n",
13 sizeof (sss), __alignof__ (sss));
14 printf ("offset-double=%d,offset-arrayof-pointer=%d,\nalign-double=%d,align-arrayof-pointer=%d\n",
15 _offsetof (struct sss, f), _offsetof (struct sss, a),
16 __alignof__ (sss.f), __alignof__ (sss.a));
17 printf ("offset-pointer-a[5]=%d,align-pointer-a[5]=%d\n",
18 _offsetof (struct sss, a[5]),
19 __alignof__ (sss.a[5]));
20 return 0;