Patch: FYI: Another PR 5057 test
Tom Tromey
tromey@redhat.com
Wed Nov 14 16:22:00 GMT 2001
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
More information about the Java-patches
mailing list