aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@one-point.com>2003-11-04 01:51:15 +0000
committerJeff Sturm <jsturm@gcc.gnu.org>2003-11-04 01:51:15 +0000
commit1b64e33f3f204981ce698221fbc98909f8c878cc (patch)
treed565ede4fdd0f554a959f17e7e6eb8c35ca846ff /libjava/testsuite/libjava.compile
parent63069342730b87b3c5094f1d9400d4edbc6bb831 (diff)
downloadgcc-1b64e33f3f204981ce698221fbc98909f8c878cc.zip
gcc-1b64e33f3f204981ce698221fbc98909f8c878cc.tar.gz
gcc-1b64e33f3f204981ce698221fbc98909f8c878cc.tar.bz2
* libjava.compile/InnerExcept.java: New File.
From-SVN: r73240
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();
+ }
+ }
+}