OSDN Git Service

2000-05-08 Bryce McKinlay <bryce@albatross.co.nz>
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 May 2000 06:37:54 +0000 (06:37 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 May 2000 06:37:54 +0000 (06:37 +0000)
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

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.compile/PR224.java [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR224.xfail [new file with mode: 0644]

index e547ecb..e2dec76 100644 (file)
@@ -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 (file)
index 0000000..eae4032
--- /dev/null
@@ -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 (file)
index 0000000..e3b083b
--- /dev/null
@@ -0,0 +1 @@
+shouldfail