aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/nested_inheritance_interface.i
blob: f8335c0afe31332f275812f1bdb0eac52fbe7123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%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

#if !defined(SWIGCSHARP) && !defined(SWIGJAVA)
%feature ("flatnested");
#endif


%inline %{
struct IA {};
struct B { struct N : IA {}; };
%}