diff options
author | YamaArashi <shadow962@live.com> | 2016-04-29 06:03:42 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-29 06:03:42 -0700 |
commit | 536c44e5e9612dc161e3da9d9f3f30e134e8242f (patch) | |
tree | 351aed8dc79f5d2f3bdb647405acb55e0e62b1d7 /gcc/testsuite/consistency.vlad/layout/class-short-and-virtual.cpp | |
parent | 10f3c226cc227a9fc6d698599b630230be792de8 (diff) |
delete test suite
Diffstat (limited to 'gcc/testsuite/consistency.vlad/layout/class-short-and-virtual.cpp')
-rwxr-xr-x | gcc/testsuite/consistency.vlad/layout/class-short-and-virtual.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/testsuite/consistency.vlad/layout/class-short-and-virtual.cpp b/gcc/testsuite/consistency.vlad/layout/class-short-and-virtual.cpp deleted file mode 100755 index 8555efc..0000000 --- a/gcc/testsuite/consistency.vlad/layout/class-short-and-virtual.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include <stdio.h> - -static class sss { -public: - short m; - virtual int f (int i) {return i;} -} sss; - -#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16) - -int main (void) { - printf ("+++Class starting with short and containing virtual function:\n"); - printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss)); - printf ("offset-m=%d,align-m=%d\n", - _offsetof (class sss, m), __alignof__ (sss.m)); -} |