2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / consistency.vlad / layout / s-longdouble-zf-longlong.c
blob16070cb6ea064a4c4c02b1f4565d9ae7d3baa5ed
1 #include <stdio.h>
3 static struct sss{
4 long double f;
5 long long :0;
6 int i;
7 } sss;
9 #define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
11 int main (void) {
12 printf ("+++longlong zerofield inside struct starting with longdouble:\n");
13 printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss));
14 printf ("offset-longdouble=%d,offset-last=%d,\nalign-longdouble=%d,align-last=%d\n",
15 _offsetof (struct sss, f), _offsetof (struct sss, i),
16 __alignof__ (sss.f), __alignof__ (sss.i));
17 return 0;