diff options
Diffstat (limited to 'libjava/testsuite/libjava.jni/virtual.java')
-rw-r--r-- | libjava/testsuite/libjava.jni/virtual.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.jni/virtual.java b/libjava/testsuite/libjava.jni/virtual.java new file mode 100644 index 0000000..496389c --- /dev/null +++ b/libjava/testsuite/libjava.jni/virtual.java @@ -0,0 +1,17 @@ +// Minimal test of a virtual method. + +public class virtual +{ + static + { + System.loadLibrary ("virtual"); + } + + public native boolean equals (Object obj); + + public static void main (String[] args) + { + Object v = new virtual (); + System.out.println (v.equals (v)); + } +} |