summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/overload.java
blob: c2e6037a50cf8f13016eb20854f898fb4872c51d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test to make sure overloaded functions with long names work.

public class overload
{
  static
  {
    System.loadLibrary ("overload");
  }

  public static native int over (int one);
  public static native int over (int one, int two);

  public static void main (String[] args)
  {
    System.out.println (over (1));
    System.out.println (over (1, 2));
  }
}