Test for PR gcj/162:

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

From-SVN: r32384
This commit is contained in:
Tom Tromey 2000-03-07 18:06:31 +00:00 committed by Tom Tromey
parent 05bccae2ef
commit 8c214df6d3
3 changed files with 39 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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>
Test for PR gcj/164:

View File

@ -0,0 +1,29 @@
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;
}
}

View File

@ -0,0 +1,4 @@
1
j=3
jj=4
3