diff options
author | camthesaxman <camthesaxman@users.noreply.github.com> | 2020-01-30 02:12:24 -0600 |
---|---|---|
committer | camthesaxman <camthesaxman@users.noreply.github.com> | 2020-01-30 02:12:24 -0600 |
commit | 3397016bff4dd62706f7d807a5196e79ae9c30b6 (patch) | |
tree | 98e90037403f29116f3ea6d0d8a1ba3623f4e968 /gcc_arm/testsuite/consistency.vlad/layout/c-int-2-c-short.cpp | |
parent | 4f87fae05b87cefd4f8fc0b2b18e639b0fad25fc (diff) |
delete test suite
Diffstat (limited to 'gcc_arm/testsuite/consistency.vlad/layout/c-int-2-c-short.cpp')
-rwxr-xr-x | gcc_arm/testsuite/consistency.vlad/layout/c-int-2-c-short.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/gcc_arm/testsuite/consistency.vlad/layout/c-int-2-c-short.cpp b/gcc_arm/testsuite/consistency.vlad/layout/c-int-2-c-short.cpp deleted file mode 100755 index 496dce3..0000000 --- a/gcc_arm/testsuite/consistency.vlad/layout/c-int-2-c-short.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdio.h> - -class c{ -public: - int f; -}; - -class c2{ -public: - short f2; -}; - - -static class sss: public c, public c2{ -public: - int m; -} sss; - -#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16) - -int main (void) { - printf ("++Class with int inhereting classes with int & short:\n"); - printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss)); - printf ("offset-f=%d,offset-f2=%d,offset-m=%d,\nalign-f=%d,align-f2=%d,align-m=%d\n", - _offsetof (class sss, f), _offsetof (class sss, f2), _offsetof (class sss, m), - __alignof__ (sss.f), __alignof__ (sss.f2), __alignof__ (sss.m)); - return 0; -} |