a3e2d2804c
- Actualize muted K2 tests - Actualize muted K1 tests with module systems because legacy Wasm test infra had no respect for "// MODULE: ..." test directives
19 lines
446 B
Kotlin
Vendored
19 lines
446 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// IGNORE_BACKEND: JS
|
|
// IGNORE_BACKEND_K1: WASM, JS_IR, JS_IR_ES6
|
|
// !API_VERSION: 1.9
|
|
|
|
import kotlin.concurrent.*
|
|
|
|
@OptIn(kotlin.ExperimentalStdlibApi::class)
|
|
class BoolWrapper(@Volatile var x: Boolean)
|
|
|
|
val global = BoolWrapper(false)
|
|
|
|
fun box() : String {
|
|
val local = BoolWrapper(false)
|
|
if (global.x || local.x) return "FAIL"
|
|
global.x = true
|
|
local.x = true
|
|
return if (global.x && local.x) "OK" else "FAIL"
|
|
} |