summaryrefslogtreecommitdiff
path: root/Examples/test-suite/valuewrapper.i
blob: 289f882de1e450cd23221db4723b5b9eee35097c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// valuewrapper.i
%module valuewrapper

%inline %{
template <typename T> struct X {
   X(int) {}
};
 
template <typename T> struct Y {
   Y() {}
   int spam(T t = T(0)) { return 0; }
};
%}
 
%template(Xi) X<int>;
%template(YXi) Y< X<int> >;