enums added for testing across different SWIG generated modules
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a7ef2df04d
commit
56211014e6
4 changed files with 27 additions and 5 deletions
|
|
@ -7,5 +7,12 @@ public class runme
|
|||
B b = new B();
|
||||
b.hello(); //call member function in A which is in a different SWIG generated library.
|
||||
b.bye();
|
||||
|
||||
if (b.member_virtual_test(A.MemberEnum.memberenum1) != A.MemberEnum.memberenum2)
|
||||
throw new Exception("Test 1 failed");
|
||||
if (b.global_virtual_test(GlobalEnum.globalenum1) != GlobalEnum.globalenum2)
|
||||
throw new Exception("Test 2 failed");
|
||||
|
||||
imports_b.global_test(A.MemberEnum.memberenum1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue