X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fabi%2Flayout2.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fabi%2Flayout2.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=fb4e1e5d9ff0b66d097f4da1b6c9b9c4e00dcc35;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/abi/layout2.C b/gcc/testsuite/g++.dg/abi/layout2.C deleted file mode 100644 index fb4e1e5d..00000000 --- a/gcc/testsuite/g++.dg/abi/layout2.C +++ /dev/null @@ -1,33 +0,0 @@ -// Red Hat bugzilla 65210 -// { dg-do run } - -struct A { - int a; -}; - -struct B : public virtual A {}; - -struct C { - long double c; -}; - -struct D : public virtual C { - int d; -}; - -struct E : public B, public D { - int e; -}; - -E e; - -/* The layout of E should begin with the B-in-E vtable pointer, followed by - the D-in-E vtable pointer. The bug was that we used to pad out the D - fields for long double alignment. */ - -int main () -{ - D* dp = &e; - unsigned long d_offset = ((char*)dp) - ((char*) &e); - return (d_offset != sizeof(void *)); -}