summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/invoke.java
blob: 91c9d374701979d7de4f9bd6bda57321a9b14147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test to make sure the minimal invocation works.

public class invoke
{
  public static native int val ();

  static
  {
    System.out.println ("trying...");
    System.loadLibrary ("invoke");
    System.out.println ("loaded");
  }

  public static void main (String[] args)
  {
    System.out.println (val ());
  }
}