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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
// Test to make sure overloaded functions with long names work.
2
 
3
public class overload
4
{
5
  static
6
  {
7
    System.loadLibrary ("overload");
8
  }
9
 
10
  public static native int over (int one);
11
  public static native int over (int one, int two);
12
 
13
  public static void main (String[] args)
14
  {
15
    System.out.println (over (1));
16
    System.out.println (over (1, 2));
17
  }
18
}

powered by: WebSVN 2.1.0

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