73d7c68909
* libjava.jni/virtual.java: New file. * libjava.jni/virtual.c: New file. * libjava.jni/virtual.out: New file. * libjava.jni/final_method.java: New file. * libjava.jni/final_method.c: New file. * libjava.jni/final_method.out: New file. * libjava.jni/overload.java: New file. * libjava.jni/overload.c: New file. * libjava.jni/overload.out: New file. * libjava.jni/simple_int.java: New file. * libjava.jni/simple_int.c: New file. * libjava.jni/simple_int.out: New file. * libjava.jni/invoke.out: New file. * libjava.jni/invoke.c: New file. * libjava.jni/invoke.java: New file. From-SVN: r31996
19 lines
365 B
Java
19 lines
365 B
Java
// 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));
|
|
}
|
|
}
|