PageRenderTime 21ms CodeModel.GetById 11ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Java | 24 lines | 21 code | 3 blank | 0 comment | 2 complexity | 896012352c2c4ec9a5ea966655f51cb6 MD5 | raw file
 1import sizet.*;
 2
 3public class sizet_runme {
 4
 5  static {
 6    try {
 7        System.loadLibrary("sizet");
 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[]) throws Throwable
15  {
16    long s = 2000;
17    s = sizet.test1(s+1);
18    s = sizet.test2(s+1);
19    s = sizet.test3(s+1);
20    s = sizet.test4(s+1);
21    if (s != 2004)
22      throw new RuntimeException("failed");
23  }
24}