For PR libgcj/5103:

* libjava.jni/cxxtest.out: New file.
	* libjava.jni/cxxtest.cc: New file.
	* libjava.jni/cxxtest.java: New file.
	* libjava.jni/jni.exp (gcj_jni_test_one): If there is no .c file,
	assume there is a .cc file.

From-SVN: r48012
This commit is contained in:
Tom Tromey 2001-12-14 21:56:29 +00:00 committed by Tom Tromey
parent 27b2c32e31
commit 1808372b58
5 changed files with 67 additions and 1 deletions

View file

@ -0,0 +1,25 @@
// Test for array field lookup.
public class cxxtest
{
// A field for us to look up.
public Object[] F = new Object[7];
public native Object[] fetch ();
public void doit ()
{
System.out.println (F == fetch ());
}
public static void main (String[] args)
{
cxxtest q = new cxxtest ();
q.doit ();
}
static
{
System.loadLibrary ("cxxtest");
}
}