* libjava.compile/InnerExcept.java: New File.
authorJeff Sturm <jsturm@one-point.com>
Tue, 4 Nov 2003 01:51:15 +0000 (01:51 +0000)
committerJeff Sturm <jsturm@gcc.gnu.org>
Tue, 4 Nov 2003 01:51:15 +0000 (01:51 +0000)
From-SVN: r73240

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

index 74e4a64..a853335 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-03  Jeff Sturm  <jsturm@one-point.com>
+
+       PR java/12866:
+       * libjava.compile/InnerExcept.java: New File.
+
 2003-10-22  Tom Tromey  <tromey@redhat.com>
 
        PR libgcj/12416:
diff --git a/libjava/testsuite/libjava.compile/InnerExcept.java b/libjava/testsuite/libjava.compile/InnerExcept.java
new file mode 100644 (file)
index 0000000..df4b628
--- /dev/null
@@ -0,0 +1,19 @@
+import java.io.*;
+
+// Test case for http://gcc.gnu.org/PR12866
+// From Mark Wielaard
+public class InnerExcept
+{
+  static private void createFile() throws IOException
+  {
+    new File("/dev/null");
+  }
+
+  class Inner
+  {
+    private void m() throws IOException
+    {
+      createFile();
+    }
+  }
+}