Test non-virtual method in Derived classes

This commit is contained in:
William S Fulton 2016-02-08 20:56:28 +00:00
commit b0fd270e54

View file

@ -49,6 +49,8 @@ DECLARE_INTERFACE_RENAME(CBase2, CBase2, SWIGTYPE_CBase2)
virtual CBase2 *clone() { virtual CBase2 *clone() {
return new Derived1(*this); return new Derived1(*this);
} }
void derived1() {
}
}; };
struct Derived2 : CBase1, ABase1 { struct Derived2 : CBase1, ABase1 {
@ -64,6 +66,8 @@ DECLARE_INTERFACE_RENAME(CBase2, CBase2, SWIGTYPE_CBase2)
virtual CBase1 *clone() { virtual CBase1 *clone() {
return new Derived2(*this); return new Derived2(*this);
} }
void derived2() {
}
}; };
struct Derived3 : ABase1, CBase1, CBase2 { struct Derived3 : ABase1, CBase1, CBase2 {
@ -81,6 +85,8 @@ DECLARE_INTERFACE_RENAME(CBase2, CBase2, SWIGTYPE_CBase2)
virtual ABase1 *clone() { virtual ABase1 *clone() {
return new Derived3(*this); return new Derived3(*this);
} }
void derived3() {
}
}; };
struct Bottom1 : Derived1 { struct Bottom1 : Derived1 {