test for ref+int overload
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4607dd57a9
commit
7e4f23332b
2 changed files with 24 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue