mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 14:29:55 +08:00
921150153a
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
20 lines
251 B
Java
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");
|
|
}
|
|
}
|