diff --git a/Examples/test-suite/template_default.i b/Examples/test-suite/template_default.i index 2d395e763..52490cf75 100644 --- a/Examples/test-suite/template_default.i +++ b/Examples/test-suite/template_default.i @@ -162,3 +162,26 @@ namespace ns1 { } %} + + +%inline %{ + + namespace hi + { + class CFoo + { + }; + + template class CTemplate + { + }; + + typedef CTemplate TBla; // OK + typedef void (*TFunc1)(CFoo arg); // OK + typedef void (*TFunc2)(CTemplate arg); // crashes SWIG + typedef void (*TFunc3)(CTemplate* arg); // crashes SWIG + + + int foo(TFunc1 a, TFunc2 b, TFunc3 c); + } +%}