adding more cases

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-21 07:10:54 +00:00
commit 9689cebfe8
3 changed files with 33 additions and 9 deletions

View file

@ -178,10 +178,27 @@ namespace ns1 {
typedef CTemplate<CFoo> TBla; // OK
typedef void (*TFunc1)(CFoo arg); // OK
typedef void (*TFunc2)(CTemplate<CFoo> arg); // crashes SWIG
typedef void (*TFunc3)(CTemplate<CFoo>* arg); // crashes SWIG
typedef void (*TFunc2)(CTemplate<CFoo> arg); // OK
typedef void (*TFunc3)(CTemplate<CFoo>* arg); // OK
int foo(TFunc1 a, TFunc2 b, TFunc3 c);
}
%}
%include std_vector.i
%{
#include <vector>
%}
%inline %{
void g(std::vector<double>* s = 0) {}
void q(double = 0) {}
%}
%constant void (*Bf)(std::vector<double> *p = 0) = g;
%constant void (*Cf)(double = 0) = q;