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
This commit is contained in:
Bryce McKinlay 1999-10-20 00:09:33 +00:00 committed by Bryce McKinlay
parent 51ae407148
commit 921150153a
4 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,11 @@
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>
* libjava.compile/Case.xfail: Removed. This test should pass now.

View File

@ -0,0 +1,4 @@
public interface A
{
public void a();
}

View File

@ -0,0 +1,4 @@
public interface B extends A
{
public void b();
}

View File

@ -0,0 +1,19 @@
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");
}
}