gcc/libjava/testsuite/libjava.compile/invokeinterface/Test.java
Bryce McKinlay 921150153a Test code for GNATS gcj/71 and GNATS gcj/72.
1999-10-19  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava.compile/invokeinterface: New directory.
        * libjava.compile/invokeinterface/Test.java: New file. Test code for
        PR gcj/71 and PR gcj/72.
        * libjava.compile/invokeinterface/A.java: New file.
        * libjava.compile/invokeinterface/B.java: New file.

From-SVN: r30094
1999-10-20 01:09:33 +01:00

20 lines
251 B
Java

public class Test implements B
{
public static void main(String args[])
{
Test t = new Test();
B a = (B) t;
a.a();
}
public void a()
{
System.out.println("A");
}
public void b()
{
System.out.println("B");
}
}