aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
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 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