mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 13:49:32 +08:00
For PR libgcj/7482:
* libjava.lang/PR7482.java: New file. * libjava.lang/PR7482.out: New file. From-SVN: r69750
This commit is contained in:
parent
f8521984ee
commit
1c41b3d6cf
@ -1,3 +1,9 @@
|
||||
2003-07-24 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
For PR libgcj/7482:
|
||||
* libjava.lang/PR7482.java: New file.
|
||||
* libjava.lang/PR7482.out: New file.
|
||||
|
||||
2003-07-20 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.mauve/mauve.exp (mauve_find_harness_files): New proc.
|
||||
|
35
libjava/testsuite/libjava.lang/PR7482.java
Normal file
35
libjava/testsuite/libjava.lang/PR7482.java
Normal file
@ -0,0 +1,35 @@
|
||||
public class PR7482
|
||||
{
|
||||
private interface I { }
|
||||
private static class B { }
|
||||
private static class U extends B implements I { }
|
||||
private static class V extends B implements I { }
|
||||
|
||||
static I field;
|
||||
|
||||
private static void g1(Object o)
|
||||
{
|
||||
I val;
|
||||
if (o == null)
|
||||
val = new U();
|
||||
else
|
||||
val = new V();
|
||||
field = val;
|
||||
}
|
||||
|
||||
private static I g2(Object o)
|
||||
{
|
||||
I val;
|
||||
if (o == null)
|
||||
val = new U();
|
||||
else
|
||||
val = new V();
|
||||
return val;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
g1(null);
|
||||
g2(null);
|
||||
}
|
||||
}
|
0
libjava/testsuite/libjava.lang/PR7482.out
Normal file
0
libjava/testsuite/libjava.lang/PR7482.out
Normal file
Loading…
Reference in New Issue
Block a user