diff --git a/SWIG/Examples/test-suite/template_typemaps.i b/SWIG/Examples/test-suite/template_typemaps.i index 4d8b88952..92968e56f 100644 --- a/SWIG/Examples/test-suite/template_typemaps.i +++ b/SWIG/Examples/test-suite/template_typemaps.i @@ -43,11 +43,20 @@ { val = v; } + +#ifdef SWIG + %typemap(in) Foo* "/* in typemap for Foo, with type T */" +#endif }; %} %template(Foo_I1) Foo; %template(Foo_I2) Foo; +%inline %{ + int bar(Foo *foo) { + return 0; + } +%} - +