git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-10-14 19:01:47 +00:00
commit c0514f76a6
2 changed files with 23 additions and 0 deletions

View file

@ -178,6 +178,7 @@ CPP_TEST_CASES += \
smart_pointer_protected \
smart_pointer_rename \
smart_pointer_simple \
smart_pointer_static \
smart_pointer_typedef \
static_array_member \
static_const_member \

View 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;
}
%}