summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/libjava.lang/PR5057_2.java
blob: 8e789ff34a23388e5846aa157bb76b1763a22a9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
  }
}
OpenPOWER on IntegriCloud