aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/testsuite/ChangeLog6
-rw-r--r--libjava/testsuite/libjava.lang/PR5057.java16
-rw-r--r--libjava/testsuite/libjava.lang/PR5057.out1
3 files changed, 23 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index de7df24..97488e3 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2001-12-17 Tom Tromey <tromey@redhat.com>
+
+ For PR java/5057:
+ * libjava.lang/PR5057.out: New file.
+ * libjava.lang/PR5057.java: New file.
+
2001-12-13 Tom Tromey <tromey@redhat.com>
For PR libgcj/5103:
diff --git a/libjava/testsuite/libjava.lang/PR5057.java b/libjava/testsuite/libjava.lang/PR5057.java
new file mode 100644
index 0000000..590ffdf
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/PR5057.java
@@ -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);
+ }
+}
diff --git a/libjava/testsuite/libjava.lang/PR5057.out b/libjava/testsuite/libjava.lang/PR5057.out
new file mode 100644
index 0000000..ea70ce0
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/PR5057.out
@@ -0,0 +1 @@
+72