Skip to content
Snippets Groups Projects
Commit 2f2648a6 authored by tromey's avatar tromey
Browse files

For PR libgcj/7482:

	* libjava.lang/PR7482.java: New file.
	* libjava.lang/PR7482.out: New file.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69750 138bc75d-0d04-0410-961f-82ee72b054a4
parent 6e899616
No related branches found
No related tags found
No related merge requests found
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> 2003-07-20 Tom Tromey <tromey@redhat.com>
* libjava.mauve/mauve.exp (mauve_find_harness_files): New proc. * libjava.mauve/mauve.exp (mauve_find_harness_files): New proc.
......
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment