add test for optimal attribute in out typemap

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-04-30 06:12:32 +00:00
commit 90b1578d65
5 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,21 @@
import typemap_out_optimal.*;
public class typemap_out_optimal_runme {
static {
try {
System.loadLibrary("typemap_out_optimal");
} 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 XX x = null;
public static void main(String argv[]) {
XX.setDebug(false);
x = XX.create();
}
}