This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: Another PR 5057 test
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 17 Dec 2001 22:06:36 -0700
- Subject: Patch: FYI: Another PR 5057 test
- Reply-to: tromey at redhat dot com
I'm checking this in.
This is another failure inspired by PR 5057.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
Inspired by PR java/5057:
* libjava.lang/PR5057_2.java: New file.
* libjava.lang/PR5057_2.out: New file.
Index: libjava.lang/PR5057_2.java
===================================================================
RCS file: PR5057_2.java
diff -N PR5057_2.java
--- /dev/null Tue May 5 13:32:27 1998
+++ libjava.lang/PR5057_2.java Mon Dec 17 20:58:46 2001
@@ -0,0 +1,19 @@
+/* Test to make sure <clinit> is generated correctly. */
+
+class R
+{
+ public static int z = 23;
+}
+
+public class PR5057_2 extends R
+{
+ static
+ {
+ R.z = 72;
+ }
+
+ public static void main (String[] args)
+ {
+ System.out.println (R.z);
+ }
+}
Index: libjava.lang/PR5057_2.out
===================================================================
RCS file: PR5057_2.out
diff -N PR5057_2.out
--- /dev/null Tue May 5 13:32:27 1998
+++ libjava.lang/PR5057_2.out Mon Dec 17 20:58:46 2001
@@ -0,0 +1 @@
+72