aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-06-13 19:21:56 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-06-13 19:21:56 +0000
commita1b6a5910bb7a4db753e0cbc28e4c9496e40fc13 (patch)
treee6612aa46d35f1ce9d9b02f40ae6f44667d4f34f /libjava
parent924b2450262392778ecd8c0e637f6abaefd81094 (diff)
downloadgcc-a1b6a5910bb7a4db753e0cbc28e4c9496e40fc13.zip
gcc-a1b6a5910bb7a4db753e0cbc28e4c9496e40fc13.tar.gz
gcc-a1b6a5910bb7a4db753e0cbc28e4c9496e40fc13.tar.bz2
re PR java/21844 (miscompilation of LinkedHashMap)
PR java/21844: * testsuite/libjava.lang/pr21844.java: New file. * testsuite/libjava.lang/pr21844.out: New file. From-SVN: r100894
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/testsuite/libjava.lang/pr21844.java33
-rw-r--r--libjava/testsuite/libjava.lang/pr21844.out1
3 files changed, 40 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 941da61..adc3f4d 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-13 Tom Tromey <tromey@redhat.com>
+
+ PR java/21844:
+ * testsuite/libjava.lang/pr21844.java: New file.
+ * testsuite/libjava.lang/pr21844.out: New file.
+
2005-06-08 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/21949
diff --git a/libjava/testsuite/libjava.lang/pr21844.java b/libjava/testsuite/libjava.lang/pr21844.java
new file mode 100644
index 0000000..24ed01f
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/pr21844.java
@@ -0,0 +1,33 @@
+class pr21844base
+{
+ int modCount;
+
+ public pr21844base(int x)
+ {
+ modCount = x;
+ }
+}
+
+public class pr21844 extends pr21844base
+{
+ class inner
+ {
+ public int doit ()
+ {
+ ++modCount;
+ return modCount;
+ }
+ }
+
+ public pr21844(int x)
+ {
+ super(x);
+ }
+
+ public static void main(String[] args)
+ {
+ pr21844 val = new pr21844(7);
+ inner i = val.new inner();
+ System.out.println(i.doit());
+ }
+}
diff --git a/libjava/testsuite/libjava.lang/pr21844.out b/libjava/testsuite/libjava.lang/pr21844.out
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/pr21844.out
@@ -0,0 +1 @@
+8