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