new tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-04-23 18:00:17 +00:00
commit 7e615494b8
3 changed files with 43 additions and 1 deletions

View file

@ -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 { };
}
}
%}