forgotten checkin - new test where a symbol name usage changes down the inheritance hierarchy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7282 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
81e1f85726
commit
1e41d4d2af
1 changed files with 15 additions and 0 deletions
15
Examples/test-suite/inherit_same_name.i
Normal file
15
Examples/test-suite/inherit_same_name.i
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
%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() {}
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue