blob: cc9f741e86cf270619e1a93fb170297577d5d28f [file] [log] [blame]
#include <stdio.h>
#include <stddef.h>
static struct sss{
size_t f;
wchar_t snd;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
int main (void) {
printf ("+++Struct size_t-wchar_t:\n");
printf ("size=%d,align=%d,offset-size_t=%d,offset-wchar_t=%d,\nalign-size_t=%d,align-wchar_t=%d\n",
sizeof (sss), __alignof__ (sss),
_offsetof (struct sss, f), _offsetof (struct sss, snd),
__alignof__ (sss.f), __alignof__ (sss.snd));
return 0;
}