test for default args in const methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9eaf8c335b
commit
6784d7e6cc
4 changed files with 36 additions and 0 deletions
|
|
@ -137,5 +137,11 @@ public class default_args_runme {
|
|||
if (default_args.constructorcall(new Klass()).getVal() != -1)
|
||||
throw new RuntimeException("constructorcall test 3 failed");
|
||||
|
||||
// const methods
|
||||
ConstMethods cm = new ConstMethods();
|
||||
if (cm.coo() != 20)
|
||||
throw new RuntimeException("coo test 1 failed");
|
||||
if (cm.coo(1.0) != 20)
|
||||
throw new RuntimeException("coo test 2 failed");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue