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:
parent
51ae407148
commit
921150153a
@ -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.
|
||||
|
4
libjava/testsuite/libjava.compile/invokeinterface/A.java
Normal file
4
libjava/testsuite/libjava.compile/invokeinterface/A.java
Normal file
@ -0,0 +1,4 @@
|
||||
public interface A
|
||||
{
|
||||
public void a();
|
||||
}
|
4
libjava/testsuite/libjava.compile/invokeinterface/B.java
Normal file
4
libjava/testsuite/libjava.compile/invokeinterface/B.java
Normal file
@ -0,0 +1,4 @@
|
||||
public interface B extends A
|
||||
{
|
||||
public void b();
|
||||
}
|
19
libjava/testsuite/libjava.compile/invokeinterface/Test.java
Normal file
19
libjava/testsuite/libjava.compile/invokeinterface/Test.java
Normal 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");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user