2 // GROUPS passed copy-ctors
7 BaseClass::Increm --> {i=5, virtMember()=30}
10 BaseClass::Increm --> {i=7, virtMember()=999}
18 BaseClass::Increm --> {i=5, virtMember()=30}
21 BaseClass::Increm --> {i=7, virtMember()=30}
25 extern "C" int printf (const char *, ...);
26 extern "C" void exit (int);
28 void die () { printf ("FAIL\n"); exit (1); }
32 friend int operator != (const BaseClass irv, int x);
38 BaseClass( const BaseClass& ir ) : i(ir.i) {}
41 virtual int virtMember() { return( 999 ); }
46 void BaseClass::Increm( int r )
48 if ((i == 5 && virtMember () == 30)
49 || (i == 7 && virtMember () == 30))
55 class DerivedClass : public BaseClass {
57 int virtMember() { return( 30 ); }
60 int operator != (const BaseClass irv, int x) { return irv.i != x; }
67 if (a != 5 || a.virtMember () != 30)
72 if (a != 7 || a.virtMember () != 30)
77 if (b != 7 || a.virtMember () != 30)
82 if (b != 9 || a.virtMember () != 30)