PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/java/typemap_arrays_runme.java

#
Java | 19 lines | 15 code | 4 blank | 0 comment | 2 complexity | d12cb0802786e84e16444455f18f8df1 MD5 | raw file
 1import typemap_arrays.*;
 2
 3public class typemap_arrays_runme {
 4
 5  static {
 6    try {
 7	System.loadLibrary("typemap_arrays");
 8    } catch (UnsatisfiedLinkError e) {
 9      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);
10      System.exit(1);
11    }
12  }
13
14  public static void main(String argv[]) {
15    if (typemap_arrays.sumA(null) != 60)
16      throw new RuntimeException("Sum is wrong");
17  }
18}
19