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