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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [cxxtest.java] - Rev 790

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

// 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");
  }
}
 

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

powered by: WebSVN 2.1.0

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