mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 03:49:03 +08:00
18 lines
283 B
Java
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));
|
||
|
}
|
||
|
}
|