1 // Testcase for tricky synthesized op= in complex inheritance situation.
2 // This used to test whether the virtual base was copy-assigned only once.
3 // That feature is not required by ISO C++, so the test now only checks
4 // whether the vbase is assigned at all.
7 extern "C" int printf (const char *, ...);
11 A& operator = (const A&) { count++; return *this; }
14 class B: virtual private A { };
15 class C: virtual public A { };
16 class D: public B, public C { };
22 printf ("%d\n",count);