[K/N] Move special backend checks test sources to diagnostic tests folder
^KT-61564
This commit is contained in:
committed by
Space Team
parent
3d0a91bf3c
commit
8f12bf6cc8
+6
@@ -0,0 +1,6 @@
|
||||
import kotlin.native.ref.*
|
||||
|
||||
@OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
||||
fun foo(x: Int) {
|
||||
createCleaner(42) { println(x) }
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlin.native.ref.*
|
||||
|
||||
class C(val x: Int) {
|
||||
fun bar(y: Int) = println(x + y)
|
||||
}
|
||||
|
||||
@OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
||||
fun foo(x: Int) {
|
||||
createCleaner(42, C(x)::bar)
|
||||
}
|
||||
Reference in New Issue
Block a user