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