OSDN Git Service

* testsuite/libjava.jni/init.c: New file.
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / libjava.jni / overload.java
1 // 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 }