X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fopeq5.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fopeq5.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=90996e9699869177514f5d96e9385e836bec8a3a;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/opeq5.C b/gcc/testsuite/g++.old-deja/g++.jason/opeq5.C deleted file mode 100644 index 90996e96..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/opeq5.C +++ /dev/null @@ -1,26 +0,0 @@ -// Testcase for tricky synthesized op= in complex inheritance situation. -// This used to test whether the virtual base was copy-assigned only once. -// That feature is not required by ISO C++, so the test now only checks -// whether the vbase is assigned at all. - -int count = 0; -extern "C" int printf (const char *, ...); - -class A { - public: - A& operator = (const A&) { count++; return *this; } -}; - -class B: virtual private A { }; -class C: virtual public A { }; -class D: public B, public C { }; - -int main() -{ - D a, b; - a = b; - printf ("%d\n",count); - if (count == 0) - return 1; - return 0; -}