Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / consistency.vlad / layout / s-int-zf-char.c
blobe8a5c71ae60fbcf434d7db15fea723c99f3ea840
1 #include <stdio.h>
3 static struct sss{
4 int f;
5 char :0;
6 int i;
7 } sss;
9 #define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
11 int main (void) {
12 printf ("+++char zerofield inside struct starting with int:\n");
13 printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss));
14 printf ("offset-int=%d,offset-last=%d,\nalign-int=%d,align-last=%d\n",
15 _offsetof (struct sss, f), _offsetof (struct sss, i),
16 __alignof__ (sss.f), __alignof__ (sss.i));
17 return 0;