This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: PR 5057 test case


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]