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/InnerExcept.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/InnerExcept.java b/libjava/testsuite/libjava.compile/InnerExcept.java
new file mode 100644
index 0000000..df4b628
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/InnerExcept.java
@@ -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();
+ }
+ }
+}