source:
trunk/src/gcc/libjava/testsuite/libjava.jni/simple_int.java@
1392
| Last change on this file since 1392 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 269 bytes | |
| Line | |
|---|---|
| 1 | // Test a simple static function with an `int' argument. |
| 2 | |
| 3 | public class simple_int |
| 4 | { |
| 5 | public static native int nat (int z); |
| 6 | |
| 7 | static |
| 8 | { |
| 9 | System.loadLibrary ("simple_int"); |
| 10 | } |
| 11 | |
| 12 | public static void main (String[] args) |
| 13 | { |
| 14 | System.out.println (nat (23)); |
| 15 | } |
| 16 | } |
Note:
See TracBrowser
for help on using the repository browser.
