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