adding test
This commit is contained in:
parent
49cd031f12
commit
e42f575b12
3 changed files with 39 additions and 0 deletions
28
Examples/test-suite/template_default_cache.i
Normal file
28
Examples/test-suite/template_default_cache.i
Normal 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;
|
||||
}
|
||||
}
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue