aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2000-05-08 06:37:54 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2000-05-08 07:37:54 +0100
commit84d7ae3293a2a8252a3b16ac7d8e24a18bfa0030 (patch)
tree6fc89a3016e7fa5ccae54bfaac6ec2eb6cd89ae2 /libjava
parenta997ec535c3dc7c382e37749123de58b2311dbbb (diff)
downloadgcc-84d7ae3293a2a8252a3b16ac7d8e24a18bfa0030.zip
gcc-84d7ae3293a2a8252a3b16ac7d8e24a18bfa0030.tar.gz
gcc-84d7ae3293a2a8252a3b16ac7d8e24a18bfa0030.tar.bz2
Test for PR gcj/224:
2000-05-08 Bryce McKinlay <bryce@albatross.co.nz> Test for PR gcj/224: * libjava.compile/PR224.java: New file. * libjava.compile/PR224.xfail: New file. From-SVN: r33762
Diffstat (limited to 'libjava')
-rw-r--r--libjava/testsuite/ChangeLog6
-rw-r--r--libjava/testsuite/libjava.compile/PR224.java16
-rw-r--r--libjava/testsuite/libjava.compile/PR224.xfail1
3 files changed, 23 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index e547ecb..e2dec76 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2000-05-08 Bryce McKinlay <bryce@albatross.co.nz>
+
+ Test for PR gcj/224:
+ * libjava.compile/PR224.java: New file.
+ * libjava.compile/PR224.xfail: New file.
+
2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
Test for PR gcj/218:
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
+
diff --git a/libjava/testsuite/libjava.compile/PR224.xfail b/libjava/testsuite/libjava.compile/PR224.xfail
new file mode 100644
index 0000000..e3b083b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR224.xfail
@@ -0,0 +1 @@
+shouldfail