diff options
author | Jeff Sturm <jsturm@one-point.com> | 2003-12-02 04:43:25 +0000 |
---|---|---|
committer | Jeff Sturm <jsturm@gcc.gnu.org> | 2003-12-02 04:43:25 +0000 |
commit | c25d9caa3ba2ed27a6d5d0284af2bb576a584c28 (patch) | |
tree | 75f3ae210fae0166bead4495c7b81ddb1192a089 /libjava/testsuite/libjava.compile | |
parent | 3c987b8ed730274ee91bff8c4386073cc949cae4 (diff) | |
download | gcc-c25d9caa3ba2ed27a6d5d0284af2bb576a584c28.zip gcc-c25d9caa3ba2ed27a6d5d0284af2bb576a584c28.tar.gz gcc-c25d9caa3ba2ed27a6d5d0284af2bb576a584c28.tar.bz2 |
re PR rtl-optimization/13024 (gcj can't build current rhug)
* libjava.compile/PR13024.java: New file.
* libjava.compile/PR13237.java: New file.
From-SVN: r74157
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 0000000..61ab17c --- /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 0000000..6333a46 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR13237.java @@ -0,0 +1,3 @@ +class PR13237 { + double kappa = Math.sqrt(2.0); +} |