blob: 78fe9a0a8e88a6c3353249d648907d93d0d04d68 [file] [log] [blame]
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
public class ClassInitializerStaticBlockInitialization {
static boolean b;
static int x;
static int y;
static {
x = 1;
x = 2;
if (b) {
y = 1;
} else {
y = 2;
}
x = 3;
}
public static void main(String[] args) {
System.out.println("x=" + x);
System.out.println("y=" + y);
}
}