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