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:
parent
05bccae2ef
commit
8c214df6d3
@ -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>
|
2000-03-06 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
Test for PR gcj/164:
|
Test for PR gcj/164:
|
||||||
|
29
libjava/testsuite/libjava.lang/PR162.java
Normal file
29
libjava/testsuite/libjava.lang/PR162.java
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
4
libjava/testsuite/libjava.lang/PR162.out
Normal file
4
libjava/testsuite/libjava.lang/PR162.out
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
1
|
||||||
|
j=3
|
||||||
|
jj=4
|
||||||
|
3
|
Loading…
Reference in New Issue
Block a user