git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4653 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-04-02 01:41:10 +00:00
commit 4b225cd251
2 changed files with 18 additions and 0 deletions

View file

@ -232,6 +232,7 @@ CPP_TEST_CASES += \
using_inherit \
using_private \
using_protected \
valuewrapper \
valuewrapper_base \
varargs \
virtual_destructor \

View 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> >;