test directors with 2 same name classes in different namespace

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9202 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-07-07 10:08:45 +00:00
parent 6a8d2e97f1
commit b70861ebdd
2 changed files with 22 additions and 0 deletions

View File

@ -126,6 +126,7 @@ CPP_TEST_CASES += \
director_exception \
director_frob \
director_finalizer \
director_namespace_clash \
director_nested \
director_primitives \
director_protected \

View File

@ -0,0 +1,21 @@
%module(directors="1") director_namespace_clash
%rename(GreatOne) One::Great;
%feature("director");
%inline %{
namespace One {
struct Great {
virtual void superb(int a) {}
virtual ~Great() {}
};
}
namespace Two {
struct Great {
virtual void excellent() {}
virtual ~Great() {}
};
}
%}