Add director_nested_class testcase
Java nested director class test for fix in e7db081d5e
This commit is contained in:
parent
837d2bfd04
commit
bca042a7dd
2 changed files with 46 additions and 0 deletions
16
Examples/test-suite/director_nested_class.i
Normal file
16
Examples/test-suite/director_nested_class.i
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
%module(directors="1") director_nested_class
|
||||
|
||||
|
||||
%feature("director") DirectorOuter::DirectorInner;
|
||||
|
||||
%inline %{
|
||||
struct DirectorOuter {
|
||||
struct DirectorInner {
|
||||
virtual ~DirectorInner() {}
|
||||
virtual int vmethod(int input) const = 0;
|
||||
};
|
||||
static int callMethod(const DirectorInner &di, int value) {
|
||||
return di.vmethod(value);
|
||||
}
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue