aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/java/cpp11_initializer_list_runme.java
blob: 0318c9e90f55112676f6295569ef6cd9f088d886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

import cpp11_initializer_list.*;

public class cpp11_initializer_list_runme {

  static {
    try {
	System.loadLibrary("cpp11_initializer_list");
    } 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[]) {
    C c = new C(null);
    String joined = c.get_joined_string();
    if (!joined.equals("AbFab"))
      throw new RuntimeException("Wrong joined string " + joined);
  }
}