summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
authorjsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-04 01:51:15 +0000
committerjsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-04 01:51:15 +0000
commite4fcf2e75038b498a08545c50501e9b09992f9f1 (patch)
treed565ede4fdd0f554a959f17e7e6eb8c35ca846ff /libjava/testsuite/libjava.compile
parent1e94fc1186f3416973bcaebc9d93678858b26717 (diff)
downloadppe42-gcc-e4fcf2e75038b498a08545c50501e9b09992f9f1.tar.gz
ppe42-gcc-e4fcf2e75038b498a08545c50501e9b09992f9f1.zip
* libjava.compile/InnerExcept.java: New File.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73240 138bc75d-0d04-0410-961f-82ee72b054a4
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 00000000000..df4b62893e2
--- /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();
+ }
+ }
+}
OpenPOWER on IntegriCloud