blob: e50d064add8262a23884ef1b4fe1417491fc6415 [file] [log] [blame]
%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() {}
};
%}