diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2005-06-12 08:18:34 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2005-06-12 08:18:34 +0000 |
commit | d44cabe4b13597d1713744309b1550e86ea1d34d (patch) | |
tree | 346db8ecf2b587b97ca9ded7392b462dd08eb3e8 | |
parent | 8a96a910348320bf7e191dacb6ecbd07d2f618cc (diff) | |
download | swig-rel-1-3-25.tar.gz |
forgotten checkin - new test where a symbol name usage changes down the inheritance hierarchyv1.3.25rel-1-3-25
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7282 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | SWIG/Examples/test-suite/inherit_same_name.i | 15 |
1 files changed, 15 insertions, 0 deletions
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 000000000..226c459a7 --- /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() {} + }; +%} |