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:
William S Fulton 2005-06-12 08:18:34 +00:00
commit 1e41d4d2af

View 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() {}
};
%}