swig/Examples/test-suite/inherit_same_name.i
Marcelo Matus f670bea448 add missing virtual destructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 07:08:11 +00:00

16 lines
324 B
OpenEdge ABL

%module inherit_same_name
%inline %{
struct Base {
Base() : MethodOrVariable(0) {}
virtual ~Base() {}
protected:
int MethodOrVariable;
};
struct Derived : Base {
virtual void MethodOrVariable() { Base::MethodOrVariable = 10; }
};
struct Bottom : Derived {
void MethodOrVariable() {}
};
%}