gcc/libjava/testsuite/libjava.lang/PR5057_2.java
Tom Tromey bf768dd17b Inspired by PR java/5057:
* libjava.lang/PR5057_2.java: New file.
	* libjava.lang/PR5057_2.out: New file.

From-SVN: r48142
2001-12-18 04:59:18 +00:00

20 lines
248 B
Java

/* 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);
}
}