Inspired by PR java/5057:
* libjava.lang/PR5057_2.java: New file. * libjava.lang/PR5057_2.out: New file. From-SVN: r48142
This commit is contained in:
parent
ced816d5e6
commit
bf768dd17b
@ -1,5 +1,9 @@
|
||||
2001-12-17 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
Inspired by PR java/5057:
|
||||
* libjava.lang/PR5057_2.java: New file.
|
||||
* libjava.lang/PR5057_2.out: New file.
|
||||
|
||||
For PR java/5057:
|
||||
* libjava.lang/PR5057.out: New file.
|
||||
* libjava.lang/PR5057.java: New file.
|
||||
|
19
libjava/testsuite/libjava.lang/PR5057_2.java
Normal file
19
libjava/testsuite/libjava.lang/PR5057_2.java
Normal file
@ -0,0 +1,19 @@
|
||||
/* Test to make sure <clinit> is generated correctly. */
|
||||
|
||||
class R
|
||||
{
|
||||
public static int z = 23;
|
||||
}
|
||||
|
||||
public class PR5057_2 extends R
|
||||
{
|
||||
static
|
||||
{
|
||||
R.z = 72;
|
||||
}
|
||||
|
||||
public static void main (String[] args)
|
||||
{
|
||||
System.out.println (R.z);
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.lang/PR5057_2.out
Normal file
1
libjava/testsuite/libjava.lang/PR5057_2.out
Normal file
@ -0,0 +1 @@
|
||||
72
|
Loading…
Reference in New Issue
Block a user