blob: 431396e00cc3e2645c3580af43960620b24258ed [file]
// WITH_STDLIB
// IGNORE_BACKEND: WASM, JS
// IGNORE_BACKEND_K1: JS_IR, JS_IR_ES6
// !API_VERSION: 1.9
import kotlin.concurrent.*
@OptIn(kotlin.ExperimentalStdlibApi::class)
class StringWrapper(@Volatile var x: String)
val global = StringWrapper("FA")
fun box() : String {
val local = StringWrapper("IL")
if (global.x + local.x != "FAIL") return "FAIL"
global.x = "O"
local.x = "K"
return global.x + local.x
}