test for ref+int overload

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-25 19:06:50 +00:00
commit 5a0b7df38f
2 changed files with 24 additions and 0 deletions

View file

@ -24,3 +24,24 @@ ref(double, double);
ref(bool, bool);
ref(long long, longlong);
ref(unsigned long long, ulonglong);
%inline %{
int ref_over(int a)
{
return a;
}
struct A
{
int v;
A(int V) :v(V) {}
};
int ref_over(const A& a)
{
return a.v;
}
%}