[K/N][tests] Migrate various runtime/ tests ^KT-61259
This commit is contained in:
committed by
Space Team
parent
7ad4e58a7a
commit
d88092aa94
@@ -0,0 +1,16 @@
|
||||
import kotlin.test.*
|
||||
import kotlin.native.concurrent.*
|
||||
|
||||
enum class A {
|
||||
A, B
|
||||
}
|
||||
|
||||
data class Foo(val kind: A)
|
||||
|
||||
// Enums are shared between threads so identity should be kept.
|
||||
fun box(): String = withWorker {
|
||||
val result = execute(TransferMode.SAFE, { Foo(A.B) }) { input ->
|
||||
input.kind === A.B
|
||||
}.result
|
||||
return if (result) "OK" else "FAIL"
|
||||
}
|
||||
Reference in New Issue
Block a user