mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
17 lines
269 B
Java
17 lines
269 B
Java
|
|
// 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));
|
||
|
|
}
|
||
|
|
}
|