diff options
Diffstat (limited to 'Examples/test-suite/typemap_template_parms.i')
-rw-r--r-- | Examples/test-suite/typemap_template_parms.i | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Examples/test-suite/typemap_template_parms.i b/Examples/test-suite/typemap_template_parms.i index fd0f7f51a..90231e827 100644 --- a/Examples/test-suite/typemap_template_parms.i +++ b/Examples/test-suite/typemap_template_parms.i @@ -26,3 +26,16 @@ template<typename T> struct X { %} %template(Xint) X<int>; + + +// The function name and parameter name are both 'labels' +%inline %{ +template <typename T> +void labels(T labels) {} +void voido(int vooo) {} +%} + +// TODO: R has a problem with parameter names clashing with the function name +#if !defined(SWIGR) +%template(ShortLabels) labels<short>; +#endif |