source: trunk/gcc/libjava/testsuite/libjava.jni/overload.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 365 bytes
Line 
1// Test to make sure overloaded functions with long names work.
2
3public 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}
Note: See TracBrowser for help on using the repository browser.