mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-18 10:24:30 +08:00
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
This commit is contained in:
parent
924b245026
commit
a1b6a5910b
@ -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
|
||||
|
33
libjava/testsuite/libjava.lang/pr21844.java
Normal file
33
libjava/testsuite/libjava.lang/pr21844.java
Normal file
@ -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());
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.lang/pr21844.out
Normal file
1
libjava/testsuite/libjava.lang/pr21844.out
Normal file
@ -0,0 +1 @@
|
||||
8
|
Loading…
Reference in New Issue
Block a user