blob: 56d0914dbb9e42d1ab49a58babdf407508b7316f [file]
// WASM_MUTE_REASON: Wrong box result 'fail2: global = AD'; Expected "OK"
var global = "A"
class C {
init {
global += "D"
}
companion object {
init {
global += "B"
}
init {
global += "C"
}
}
}
fun box(): String {
if (global != "A") {
return "fail1: global = $global"
}
val c = C()
if (global == "ABCD") return "OK" else return "fail2: global = $global"
}