Add another interface test selecting just one base as an interface

This commit is contained in:
William S Fulton 2016-02-12 22:33:21 +00:00
commit 67f38e8124
2 changed files with 24 additions and 1 deletions

View file

@ -6,7 +6,6 @@ DECLARE_INTERFACE_RENAME(IA, A, IA)
DECLARE_INTERFACE_RENAME(IB, B, IB)
DECLARE_INTERFACE_RENAME(IC, C, IC)
#endif
%inline %{
struct IA {
virtual void ia() {};
@ -30,3 +29,17 @@ struct IK : IJ {};
struct IL : IK {};
struct M : IL {};
%}
#if defined(SWIGJAVA) || defined(SWIGCSHARP)
DECLARE_INTERFACE_RENAME(IQ, Q, IQ)
#endif
%inline %{
struct P { virtual void p() {}; };
struct IQ { virtual void iq() {}; };
struct R : IQ, P {};
struct S : P, IQ {};
struct T : IQ {};
struct U : R {};
struct V : S {};
struct W : T {};
%}