OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [field.java] - Blame information for rev 776

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// Test for array field lookup.
2
 
3
public class field
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
    field q = new field ();
18
    q.doit ();
19
  }
20
 
21
  static
22
  {
23
    System.loadLibrary ("field");
24
  }
25
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.