Retro68/gcc/libjava/testsuite/libjava.jni/virtual.java
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

18 lines
283 B
Java

// 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));
}
}