X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fconsistency.vlad%2Flayout%2Fc-double-1-c-long.cpp;fp=gcc%2Ftestsuite%2Fconsistency.vlad%2Flayout%2Fc-double-1-c-long.cpp;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=f7e929526299c7b46c7e418e914471f865cebb8b;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/consistency.vlad/layout/c-double-1-c-long.cpp b/gcc/testsuite/consistency.vlad/layout/c-double-1-c-long.cpp deleted file mode 100644 index f7e92952..00000000 --- a/gcc/testsuite/consistency.vlad/layout/c-double-1-c-long.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include - -class c{ -public: - double f; -}; - - -static class sss: public c{ -public: - long m; -} sss; - -#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16) - -int main (void) { - printf ("++Class with long inhereting class with double:\n"); - printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss)); - printf ("offset-double=%d,offset-long=%d,\nalign-double=%d,align-long=%d\n", - _offsetof (class sss, f), _offsetof (class sss, m), - __alignof__ (sss.f), __alignof__ (sss.m)); - return 0; -}