diff options
| author | jsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-02 04:43:25 +0000 |
|---|---|---|
| committer | jsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-02 04:43:25 +0000 |
| commit | 8c3e039d14c2a4f68a9f2421ca6f009c8fab12fb (patch) | |
| tree | 75f3ae210fae0166bead4495c7b81ddb1192a089 /libjava/testsuite/libjava.compile | |
| parent | ba476fb4cd50309edb5fdf14894bf8f8f4a487e0 (diff) | |
| download | ppe42-gcc-8c3e039d14c2a4f68a9f2421ca6f009c8fab12fb.tar.gz ppe42-gcc-8c3e039d14c2a4f68a9f2421ca6f009c8fab12fb.zip | |
* libjava.compile/PR13024.java: New file.
* libjava.compile/PR13237.java: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74157 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
| -rw-r--r-- | libjava/testsuite/libjava.compile/PR13024.java | 18 | ||||
| -rw-r--r-- | libjava/testsuite/libjava.compile/PR13237.java | 3 |
2 files changed, 21 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR13024.java b/libjava/testsuite/libjava.compile/PR13024.java new file mode 100644 index 00000000000..61ab17c5e88 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR13024.java @@ -0,0 +1,18 @@ +import java.io.*; +import java.util.zip.*; + +class PR13024 { + void isZipOrJarArchive(File file) throws IOException { + ZipFile zipFile = null; + + try { + zipFile = new ZipFile(file); + } finally { + if (zipFile != null) { + try { + zipFile.close(); + } catch (IOException ignored) {} + } + } + } +} diff --git a/libjava/testsuite/libjava.compile/PR13237.java b/libjava/testsuite/libjava.compile/PR13237.java new file mode 100644 index 00000000000..6333a460afb --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR13237.java @@ -0,0 +1,3 @@ +class PR13237 { + double kappa = Math.sqrt(2.0); +} |

