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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
// Another test of RegisterNatives.
2
// We neglected to track the class name in our internal hash table.
3
// This is a regression test for the fix.
4
 
5
public class register2
6
{
7
  static
8
  {
9
    System.loadLibrary ("register2");
10
  }
11
 
12
  static class I1
13
  {
14
    public static native int doit ();
15
  }
16
 
17
  static class I2
18
  {
19
    public static native int doit ();
20
  }
21
 
22
  public static void main (String[] args)
23
  {
24
    System.out.println (new I1().doit());
25
    System.out.println (new I2().doit());
26
  }
27
}

powered by: WebSVN 2.1.0

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