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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// 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
}

powered by: WebSVN 2.1.0

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