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@7282 626c5289-ae23-0410-ae9c-e8d60b6d4f22
diff --git a/SWIG/Examples/test-suite/inherit_same_name.i b/SWIG/Examples/test-suite/inherit_same_name.i
new file mode 100644
index 0000000..226c459
--- /dev/null
+++ b/SWIG/Examples/test-suite/inherit_same_name.i
@@ -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() {}
+ };
+%}