Upstream version 1.3.40
[profile/ivi/swig.git] / Examples / test-suite / valuewrapper.i
1 // valuewrapper.i
2 %module valuewrapper
3
4 %inline %{
5 template <typename T> struct X {
6    X(int) {}
7 };
8  
9 template <typename T> struct Y {
10    Y() {}
11    int spam(T t = T(0)) { return 0; }
12 };
13 %}
14  
15 %template(Xi) X<int>;
16 %template(YXi) Y< X<int> >;
17