diff options
Diffstat (limited to 'Examples/test-suite/template_const_ref.i')
| -rw-r--r-- | Examples/test-suite/template_const_ref.i | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Examples/test-suite/template_const_ref.i b/Examples/test-suite/template_const_ref.i new file mode 100644 index 0000000..196ca90 --- /dev/null +++ b/Examples/test-suite/template_const_ref.i @@ -0,0 +1,14 @@ +%module template_const_ref +%inline %{ +template <class T> class Foo { +public: + char *bar(const T &obj) { + return (char *) "Foo::bar"; + } +}; +class Bar { }; +%} + +%template(Foob) Foo<const Bar *>; +%template(Fooi) Foo<const int *>; + |
