pre, post, cshin, pgcppname attribute tests for javain/csin typemap

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9679 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-04-17 22:48:38 +00:00
commit fd03218011
6 changed files with 281 additions and 0 deletions

View file

@ -0,0 +1,28 @@
import java_prepost.*;
public class java_prepost_runme {
static {
try {
System.loadLibrary("java_prepost");
} 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[])
{
// ensure checked exception is generated
try {
PrePostThrows ppt = new PrePostThrows(null);
} catch (InstantiationException e) {
}
}
private static void Assert(double d1, double d2) {
if (d1 != d2)
throw new RuntimeException("assertion failure. " + d1 + " != " + d2);
}
}