OSDN Git Service

PR libgcj/11951:
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / libjava.jni / cxxtest.java
1 // Test for array field lookup.
2
3 public class cxxtest
4 {
5   // A field for us to look up.
6   public Object[] F = new Object[7];
7
8   public native Object[] fetch ();
9
10   public void doit ()
11   {
12     System.out.println (F == fetch ());
13   }
14
15   public static void main (String[] args)
16   {
17     cxxtest q = new cxxtest ();
18     q.doit ();
19   }
20
21   static
22   {
23     System.loadLibrary ("cxxtest");
24   }
25 }