blob: 226c459a758e4b68c68c899bc41dcd082bad777d [file] [log] [blame]
%module inherit_same_name
%inline %{
struct Base {
Base() : MethodOrVariable(0) {}
protected:
int MethodOrVariable;
};
struct Derived : Base {
virtual void MethodOrVariable() { Base::MethodOrVariable = 10; }
};
struct Bottom : Derived {
void MethodOrVariable() {}
};
%}