This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: PR 5057 test case
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 17 Dec 2001 21:45:15 -0700
- Subject: Patch: FYI: PR 5057 test case
- Reply-to: tromey at redhat dot com
I'm checking this in.
It adds a test case for PR 5057.
We really need to get in the habit of doing this.
I'm not xfailing this since I'm submitting a fix shortly.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
For PR java/5057:
* libjava.lang/PR5057.out: New file.
* libjava.lang/PR5057.java: New file.
Index: libjava.lang/PR5057.java
===================================================================
RCS file: PR5057.java
diff -N PR5057.java
--- /dev/null Tue May 5 13:32:27 1998
+++ libjava.lang/PR5057.java Mon Dec 17 20:37:02 2001
@@ -0,0 +1,16 @@
+/* Test to make sure <clinit> is generated correctly. */
+
+public class PR5057
+{
+ public static int x;
+
+ static
+ {
+ x = 72;
+ }
+
+ public static void main (String[] args)
+ {
+ System.out.println (x);
+ }
+}
Index: libjava.lang/PR5057.out
===================================================================
RCS file: PR5057.out
diff -N PR5057.out
--- /dev/null Tue May 5 13:32:27 1998
+++ libjava.lang/PR5057.out Mon Dec 17 20:37:02 2001
@@ -0,0 +1 @@
+72