From 84d7ae3293a2a8252a3b16ac7d8e24a18bfa0030 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Mon, 8 May 2000 06:37:54 +0000 Subject: Test for PR gcj/224: 2000-05-08 Bryce McKinlay Test for PR gcj/224: * libjava.compile/PR224.java: New file. * libjava.compile/PR224.xfail: New file. From-SVN: r33762 --- libjava/testsuite/libjava.compile/PR224.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR224.java (limited to 'libjava/testsuite/libjava.compile/PR224.java') diff --git a/libjava/testsuite/libjava.compile/PR224.java b/libjava/testsuite/libjava.compile/PR224.java new file mode 100644 index 0000000..eae4032 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR224.java @@ -0,0 +1,16 @@ +// File PrivateInnerInterface.java + +public class PR224 { + private interface Inter {} +} + + +class PrivateInnerInterface_Test extends PR224 { + void foo() { + // Implement the interface with an innerclass + Inter i = new Inter() { } ; + } +} + +// This should fail to compile because Inter is private in the superclass + -- cgit v1.1