summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-08 06:37:54 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-08 06:37:54 +0000
commit14dfcac28fd1533ae630efca56857a7da1716a69 (patch)
tree6fc89a3016e7fa5ccae54bfaac6ec2eb6cd89ae2 /libjava/testsuite/libjava.compile
parent6bc2f30fff05146317d82dc1fc430badfdd9a2f3 (diff)
downloadppe42-gcc-14dfcac28fd1533ae630efca56857a7da1716a69.tar.gz
ppe42-gcc-14dfcac28fd1533ae630efca56857a7da1716a69.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33762 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r--libjava/testsuite/libjava.compile/PR224.java16
-rw-r--r--libjava/testsuite/libjava.compile/PR224.xfail1
2 files changed, 17 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR224.java b/libjava/testsuite/libjava.compile/PR224.java
new file mode 100644
index 00000000000..eae4032e123
--- /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 00000000000..e3b083b1fa5
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR224.xfail
@@ -0,0 +1 @@
+shouldfail
OpenPOWER on IntegriCloud