aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-12-18 04:38:04 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-12-18 04:38:04 +0000
commitced816d5e644d5b2402b4a8c32f81b4f1e3d3635 (patch)
treeb72f6ea9c6e7e13e0197fabef9a62a6937c16c1a /libjava
parent33bd39a26a88cbaabb2f85735c1ff1e51f2a7111 (diff)
downloadgcc-ced816d5e644d5b2402b4a8c32f81b4f1e3d3635.zip
gcc-ced816d5e644d5b2402b4a8c32f81b4f1e3d3635.tar.gz
gcc-ced816d5e644d5b2402b4a8c32f81b4f1e3d3635.tar.bz2
For PR java/5057:
* libjava.lang/PR5057.out: New file. * libjava.lang/PR5057.java: New file. From-SVN: r48141
Diffstat (limited to 'libjava')
-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