Add nested_inheritance_interface test
This commit is contained in:
parent
22c27cf216
commit
84e310402a
3 changed files with 44 additions and 0 deletions
15
Examples/test-suite/nested_inheritance_interface.i
Normal file
15
Examples/test-suite/nested_inheritance_interface.i
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
%module nested_inheritance_interface
|
||||
|
||||
%warnfilter(SWIGWARN_RUBY_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_D_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_PHP_MULTIPLE_INHERITANCE); /* languages not supporting multiple inheritance or %interface */
|
||||
|
||||
#if defined(SWIGJAVA) || defined(SWIGCSHARP)
|
||||
%include "swiginterface.i"
|
||||
%interface(IA)
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
struct IA {};
|
||||
struct B { struct N : IA {}; };
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue