/trunk/Examples/test-suite/java/typemap_arrays_runme.java
Java | 19 lines | 15 code | 4 blank | 0 comment | 2 complexity | d12cb0802786e84e16444455f18f8df1 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- 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");
- }
- }