From 921150153a759014700f6b0500df679af4afc4de Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Wed, 20 Oct 1999 00:09:33 +0000 Subject: Test code for GNATS gcj/71 and GNATS gcj/72. 1999-10-19 Bryce McKinlay * 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 --- .../testsuite/libjava.compile/invokeinterface/A.java | 4 ++++ .../testsuite/libjava.compile/invokeinterface/B.java | 4 ++++ .../libjava.compile/invokeinterface/Test.java | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/invokeinterface/A.java create mode 100644 libjava/testsuite/libjava.compile/invokeinterface/B.java create mode 100644 libjava/testsuite/libjava.compile/invokeinterface/Test.java (limited to 'libjava/testsuite/libjava.compile/invokeinterface') diff --git a/libjava/testsuite/libjava.compile/invokeinterface/A.java b/libjava/testsuite/libjava.compile/invokeinterface/A.java new file mode 100644 index 0000000..a4167cd --- /dev/null +++ b/libjava/testsuite/libjava.compile/invokeinterface/A.java @@ -0,0 +1,4 @@ +public interface A +{ + public void a(); +} diff --git a/libjava/testsuite/libjava.compile/invokeinterface/B.java b/libjava/testsuite/libjava.compile/invokeinterface/B.java new file mode 100644 index 0000000..3661e09 --- /dev/null +++ b/libjava/testsuite/libjava.compile/invokeinterface/B.java @@ -0,0 +1,4 @@ +public interface B extends A +{ + public void b(); +} diff --git a/libjava/testsuite/libjava.compile/invokeinterface/Test.java b/libjava/testsuite/libjava.compile/invokeinterface/Test.java new file mode 100644 index 0000000..2fb793f --- /dev/null +++ b/libjava/testsuite/libjava.compile/invokeinterface/Test.java @@ -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"); + } +} -- cgit v1.1