diff options
Diffstat (limited to 'gcc/testsuite/consistency.vlad/layout/s-float-short.c')
-rwxr-xr-x | gcc/testsuite/consistency.vlad/layout/s-float-short.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/testsuite/consistency.vlad/layout/s-float-short.c b/gcc/testsuite/consistency.vlad/layout/s-float-short.c deleted file mode 100755 index 3c4db81..0000000 --- a/gcc/testsuite/consistency.vlad/layout/s-float-short.c +++ /dev/null @@ -1,17 +0,0 @@ -#include <stdio.h> - -static struct sss{ - float f; - short snd; -} sss; - -#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16) - -int main (void) { - printf ("+++Struct float-short:\n"); - printf ("size=%d,align=%d,offset-float=%d,offset-short=%d,\nalign-float=%d,align-short=%d\n", - sizeof (sss), __alignof__ (sss), - _offsetof (struct sss, f), _offsetof (struct sss, snd), - __alignof__ (sss.f), __alignof__ (sss.snd)); - return 0; -} |