X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.abi%2Fempty.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.abi%2Fempty.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=b7a791f0a94fc781d3d8ef80cb5b91077a4c5cdd;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.abi/empty.C b/gcc/testsuite/g++.old-deja/g++.abi/empty.C deleted file mode 100644 index b7a791f0..00000000 --- a/gcc/testsuite/g++.old-deja/g++.abi/empty.C +++ /dev/null @@ -1,68 +0,0 @@ -// Special g++ Options: -w -// Origin: Mark Mitchell - -#if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 - -struct S0 -{ -}; - -struct S1 : public S0 -{ -}; - -struct S2 : public S1 -{ - char c; -}; - -// In S3, the S1 instance is allocated first at offset zero. The S2 -// instance has to be allocated at a subsequent offset; it's first -// part is also an S1. - -struct S3 : public S1, public S2 -{ -}; - -struct S4 -{ - int i; -}; - -// In S4, in contrast to S3, S2 is allocated first, and S1 can be -// allocated on top of S4. - -struct S5 : public S2, public S1, public S4 -{ -}; - -// The T classes are by-hand layouts that should be equivalent to the -// S classes. - -struct T3 -{ - S1 s1; - S2 s2; -}; - -struct T5 -{ - S2 s2; - S4 s4; -}; - -int main () -{ - if (sizeof (S3) != sizeof (T3)) - return 1; - else if (sizeof (S5) != sizeof (T5)) - return 2; -} - -#else /* !(defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100) */ - -int main () -{ -} - -#endif /* !(defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100) */