diff options
Diffstat (limited to 'Examples/test-suite/template_ref_type.i')
-rw-r--r-- | Examples/test-suite/template_ref_type.i | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Examples/test-suite/template_ref_type.i b/Examples/test-suite/template_ref_type.i new file mode 100644 index 000000000..a41d006ef --- /dev/null +++ b/Examples/test-suite/template_ref_type.i @@ -0,0 +1,27 @@ +%module template_ref_type + +%inline %{ +class X { +public: + unsigned _i; +}; + +template <class T> class Container { +public: + Container () {} + bool reset () { return false ;} +}; + +typedef Container<X> XC; +%} + +%template(XC) Container<X>; + +%inline %{ +class Y { +public: + Y () {}; + bool find (XC &) { return false; } +}; +%} + |