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:
parent
27b2c32e31
commit
1808372b58
5 changed files with 67 additions and 1 deletions
25
libjava/testsuite/libjava.jni/cxxtest.java
Normal file
25
libjava/testsuite/libjava.jni/cxxtest.java
Normal 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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue