[K/N][Tests] Adjust moved codegen tests to new infra

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-14 20:14:47 +01:00
committed by Space Team
parent 71a834b778
commit 73032213f0
295 changed files with 1362 additions and 1145 deletions
@@ -3,7 +3,6 @@
* that can be found in the LICENSE file.
*/
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
package codegen.funInterface.kt43887
import kotlin.test.*
@@ -27,12 +26,14 @@ inline fun CPointer<heap_t>?.free(ptr: CPointer<*>?): Boolean {
return heap_free(this, ptr)?.pointed?.value ?: false
}
@Test
fun runTest(): Unit = memScoped {
fun box(): String {
memScoped {
val heap = Heap(1024)
heap.use<IntVar> { ptr ->
ptr.pointed.value = 40
//println("PTR ${ptr.pointed}")
}
}
return "OK"
}