From: Jeff Sturm Date: Tue, 2 Dec 2003 04:43:25 +0000 (+0000) Subject: re PR rtl-optimization/13024 (gcj can't build current rhug) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c25d9caa3ba2ed27a6d5d0284af2bb576a584c28;p=gcc.git 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 --- diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 674b0b74a53..6d8b383f5b1 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2003-12-01 Jeff Sturm + + PR optimization/13024 + * libjava.compile/PR13024.java: New file. + + PR java/13237 + * libjava.compile/PR13237.java: New file. + 2003-11-18 Andreas Tobler * libjava.jar/jar.exp: Cleanup files and reset CLASSPATH. 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); +}