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

Test for PR gcj/162:

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


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32384 138bc75d-0d04-0410-961f-82ee72b054a4
parent a0c2c45b
No related branches found
No related tags found
No related merge requests found
2000-03-07 Tom Tromey <tromey@cygnus.com>
Test for PR gcj/162:
* libjava.lang/PR162.out: New file.
* libjava.lang/PR162.java: New file.
2000-03-06 Tom Tromey <tromey@cygnus.com> 2000-03-06 Tom Tromey <tromey@cygnus.com>
Test for PR gcj/164: Test for PR gcj/164:
......
interface I
{
int i = 1, ii = Test.out ("ii", 2);
}
interface J extends I
{
int j = Test.out ("j", 3), jj = Test.out ("jj", 4);
}
interface K extends J
{
int k = Test.out ("k", 5);
}
public class PR162
{
public static void main (String[] args)
{
System.out.println (J.i);
System.out.println (K.j);
}
public static int out (String s, int i)
{
System.out.println (s + "=" + i);
return i;
}
}
1
j=3
jj=4
3
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