This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: New test case
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 22 Jul 2002 21:20:57 -0600
- Subject: Patch: FYI: New test case
- Reply-to: tromey at redhat dot com
I'm checking this in. This is a test case for a bug recently reported
on the java list. Fix to follow shortly.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* libjava.compile/zeroexp.java: New file.
Index: libjava.compile/zeroexp.java
===================================================================
RCS file: libjava.compile/zeroexp.java
diff -N libjava.compile/zeroexp.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ libjava.compile/zeroexp.java 23 Jul 2002 03:14:21 -0000
@@ -0,0 +1,10 @@
+public class zeroexp
+{
+ public static void main (String[] argv)
+ {
+ // gcj used to give an error about this literal.
+ float f = 0E-6F;
+ double d = 0E-9;
+ System.out.println ("" + f + " " + d);
+ }
+}