new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1f2ebeb4e2
commit
a377e7f9f0
2 changed files with 23 additions and 0 deletions
22
Examples/test-suite/smart_pointer_static.i
Normal file
22
Examples/test-suite/smart_pointer_static.i
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
%module smart_pointer_static
|
||||
%inline %{
|
||||
class Foo2;
|
||||
|
||||
class MyHandle_Foo2 {
|
||||
public:
|
||||
Foo2 * operator -> ();
|
||||
};
|
||||
|
||||
class Foo2 {
|
||||
public:
|
||||
virtual int sum(int i, int j) { return i+j; }
|
||||
static int sum(int i, int j, int k);
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
%{
|
||||
int Foo2::sum(int i, int j, int k) {
|
||||
return i+j+k;
|
||||
}
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue