summaryrefslogtreecommitdiff
path: root/Examples/test-suite/java/typemap_arrays_runme.java
blob: 1ca062f78a82d09443d32111e839e37c6174cdff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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");
  }
}