Fix expansion in array typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
18cede40d2
commit
8f1bde9d81
6 changed files with 67 additions and 8 deletions
19
Examples/test-suite/java/typemap_arrays_runme.java
Normal file
19
Examples/test-suite/java/typemap_arrays_runme.java
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import typemap_arrays.*;
|
||||
|
||||
public class typemap_arrays_runme {
|
||||
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("typemap_arrays");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String argv[]) {
|
||||
if (typemap_arrays.sumA(null) != 60)
|
||||
throw new RuntimeException("Sum is wrong");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue