Commit 92115015 by Bryce McKinlay Committed by Bryce McKinlay

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
parent 51ae4071
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.
1999-10-02 Anthony Green <green@cygnus.com> 1999-10-02 Anthony Green <green@cygnus.com>
* libjava.compile/Case.xfail: Removed. This test should pass now. * libjava.compile/Case.xfail: Removed. This test should pass now.
......
public interface A
{
public void a();
}
public interface B extends A
{
public void b();
}
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");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment