summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-13 19:21:56 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-13 19:21:56 +0000
commitb8ddb2e8d069c020eb01e7a0ebad5aa7a77939ef (patch)
treee6612aa46d35f1ce9d9b02f40ae6f44667d4f34f /libjava
parentde423c677d91eab51bbf225036ec74439c1ae3aa (diff)
downloadgcc-b8ddb2e8d069c020eb01e7a0ebad5aa7a77939ef.tar.gz
PR java/21844:
* testsuite/libjava.lang/pr21844.java: New file. * testsuite/libjava.lang/pr21844.out: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100894 138bc75d-0d04-0410-961f-82ee72b054a4
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 941da61a9ba..adc3f4d7281 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 00000000000..24ed01fce9f
--- /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 00000000000..45a4fb75db8
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/pr21844.out
@@ -0,0 +1 @@
+8