aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/simple_int.java
blob: 6306c4e9335ae27be3e70166dca3e997e7eedb54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Test a simple static function with an `int' argument.

public class simple_int
{
  public static native int nat (int z);

  static
  {
    System.loadLibrary ("simple_int");
  }

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