/trunk/Examples/test-suite/inherit_same_name.i
Swig | 16 lines | 15 code | 1 blank | 0 comment | 0 complexity | a7c7176d3cecf632dee839d00dcb3aee MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %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() {}
- };
- %}