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