adding test

This commit is contained in:
Frank Schlimbach 2016-10-10 13:50:09 -05:00
commit e42f575b12
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,28 @@
%module template_default_cache;
%import "amodel.i"
%{ // C++ code to make this compilable
namespace d {
template< typename T > class d {};
}
namespace ns__a {
namespace iface1 {
class Model {};
typedef d::d<Model> ModelPtr;
}
using iface1::ModelPtr;
}
%}
%inline %{
namespace ns__b {
namespace iface1 {
class Model {
public:
ns__a::ModelPtr foo() { return ns__a::ModelPtr(); };
};
typedef d::d<Model> ModelPtr;
}
}
%}