diff options
author | Dave Beazley <dave-swig@dabeaz.com> | 2003-04-23 18:00:17 +0000 |
---|---|---|
committer | Dave Beazley <dave-swig@dabeaz.com> | 2003-04-23 18:00:17 +0000 |
commit | 7e615494b851ba6bda011c287df3548dbdd84e8d (patch) | |
tree | 3c82b3c2d8938ba9c5a9321ba6881a7b4cb0bfd1 /Examples/test-suite/namespace_virtual_method.i | |
parent | 2ab88fabbc16c958b91c4f90c225845540fda670 (diff) | |
download | swig-7e615494b851ba6bda011c287df3548dbdd84e8d.tar.gz |
new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/namespace_virtual_method.i')
-rw-r--r-- | Examples/test-suite/namespace_virtual_method.i | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Examples/test-suite/namespace_virtual_method.i b/Examples/test-suite/namespace_virtual_method.i new file mode 100644 index 000000000..2eac3c53b --- /dev/null +++ b/Examples/test-suite/namespace_virtual_method.i @@ -0,0 +1,38 @@ +%module namespace_virtual_method + +%inline %{ + +namespace A { + namespace B { + class Foo; + } + namespace C { + class Foo { + public: + Foo() { }; + virtual ~Foo() { }; + virtual int bar(const A::B::Foo &x) = 0; + }; + } +} + +namespace A { + namespace C { + class Spam : public Foo { + public: + Spam() { } + virtual ~Spam() { } + virtual int bar(const B::Foo &x) { return 1; } + }; + } +} + +%} + +%{ +namespace A { + namespace B { + class Foo { }; + } +} +%} |