apply SF Patch #350 and add testcase
This commit is contained in:
parent
54218bfe3f
commit
488aed4224
4 changed files with 42 additions and 9 deletions
29
Examples/test-suite/director_nestedmodule.i
Normal file
29
Examples/test-suite/director_nestedmodule.i
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
%module(directors="1") "director::nestedmodule"
|
||||
|
||||
%{
|
||||
#include <string>
|
||||
|
||||
class Foo {
|
||||
public:
|
||||
virtual ~Foo() {}
|
||||
virtual std::string ping() { return "Foo::ping()"; }
|
||||
virtual std::string pong() { return "Foo::pong();" + ping(); }
|
||||
|
||||
static Foo* get_self(Foo *slf) {return slf;}
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
%include <std_string.i>
|
||||
|
||||
%feature("director") Foo;
|
||||
|
||||
|
||||
class Foo {
|
||||
public:
|
||||
virtual ~Foo();
|
||||
virtual std::string ping();
|
||||
virtual std::string pong();
|
||||
|
||||
static Foo* get_self(Foo *slf);
|
||||
};
|
||||
|
|
@ -17,6 +17,7 @@ CPP_TEST_CASES += \
|
|||
li_cstring \
|
||||
li_cdata_carrays \
|
||||
li_reference \
|
||||
director_nestedmodule \
|
||||
|
||||
C_TEST_CASES += \
|
||||
li_cdata \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue