[K/N] Move special backend checks test sources to diagnostic tests folder

^KT-61564
This commit is contained in:
Vladimir Sukharev
2023-11-22 19:56:02 +01:00
committed by Space Team
parent 3d0a91bf3c
commit 8f12bf6cc8
67 changed files with 82 additions and 157 deletions
@@ -0,0 +1,10 @@
import kotlin.native.concurrent.*
class Z(val x: Int) {
fun bar(s: String) = s + x.toString()
}
fun foo(x: Int) {
val worker = Worker.start()
worker.execute(TransferMode.SAFE, { "zzz" }, Z(x)::bar)
}
@@ -0,0 +1,6 @@
import kotlin.native.concurrent.*
fun foo(x: Int) {
val worker = Worker.start()
worker.execute(TransferMode.SAFE, { "zzz" }) { s -> s + x.toString() }
}
@@ -0,0 +1,14 @@
@file:OptIn(ObsoleteWorkersApi::class)
import kotlin.native.concurrent.*
class Z(val x: Int) {
fun bar(s: String) = s + x.toString()
}
class Q(x: Int) {
init {
val worker = Worker.start()
worker.execute(TransferMode.SAFE, { "zzz" }, Z(x)::bar)
}
}
@@ -0,0 +1,11 @@
@file:OptIn(ObsoleteWorkersApi::class)
import kotlin.native.concurrent.*
class Z(val x: Int) {
fun bar(s: String) = s + x.toString()
}
class Q(x: Int) {
val z = Worker.start().execute(TransferMode.SAFE, { "zzz" }, Z(x)::bar)
}