diff options
-rw-r--r-- | libjava/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/InnerExcept.java | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 74e4a64..a853335 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -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 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(); + } + } +} |