gcc/libjava/testsuite/libjava.lang/PR5057_2.java

20 lines
248 B
Java
Raw Normal View History

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