source: trunk/gcc/libjava/testsuite/libjava.jni/invoke.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: 321 bytes
Line 
1// Test to make sure the minimal invocation works.
2
3public class invoke
4{
5 public static native int val ();
6
7 static
8 {
9 System.out.println ("trying...");
10 System.loadLibrary ("invoke");
11 System.out.println ("loaded");
12 }
13
14 public static void main (String[] args)
15 {
16 System.out.println (val ());
17 }
18}
Note: See TracBrowser for help on using the repository browser.