new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4653 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3523a80886
commit
4b225cd251
2 changed files with 18 additions and 0 deletions
|
|
@ -232,6 +232,7 @@ CPP_TEST_CASES += \
|
|||
using_inherit \
|
||||
using_private \
|
||||
using_protected \
|
||||
valuewrapper \
|
||||
valuewrapper_base \
|
||||
varargs \
|
||||
virtual_destructor \
|
||||
|
|
|
|||
17
SWIG/Examples/test-suite/valuewrapper.i
Normal file
17
SWIG/Examples/test-suite/valuewrapper.i
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// value_wrapper.i
|
||||
%module value_wrapper
|
||||
|
||||
%inline %{
|
||||
template <typename T> struct X {
|
||||
X(int);
|
||||
};
|
||||
|
||||
template <typename T> struct Y {
|
||||
Y();
|
||||
int spam(T t = T(0));
|
||||
};
|
||||
%}
|
||||
|
||||
%template(Xi) X<int>;
|
||||
%template(YXi) Y< X<int> >;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue