mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 11:49:50 +08:00
a51c1a1a0a
* libjava.jni/noclass.c: New file. * libjava.jni/noclass.out: New file. * libjava.jni/noclass.java: New file. From-SVN: r32226
19 lines
350 B
Java
19 lines
350 B
Java
// Test to make sure JNI implementation catches exceptions.
|
|
|
|
public class noclass
|
|
{
|
|
static
|
|
{
|
|
System.loadLibrary ("noclass");
|
|
}
|
|
|
|
public static native void find_it ();
|
|
|
|
public static void main (String[] args)
|
|
{
|
|
find_it ();
|
|
// If find_it() causes a crash, we won't be running this next line.
|
|
System.out.println ("Ok");
|
|
}
|
|
}
|