[K/N][tests] Migrate first platform-dependent test to new testing infra

^KT-61259
This commit is contained in:
Alexander Shabalin
2023-12-20 18:52:02 +01:00
committed by Vladimir Sukharev
parent 4786c945d9
commit b7fbfb2fde
10 changed files with 38 additions and 81 deletions
@@ -1,15 +0,0 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
import kotlinx.cinterop.convert
import platform.posix.*
fun foo() {
println("linked library")
val size: size_t = 17.convert<size_t>()
val e = fabs(1.toDouble())
println("and symbols from posix available: $size; $e")
}
@@ -1,9 +0,0 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
fun main(args: Array<String>) {
foo()
}
@@ -1,2 +0,0 @@
linked library
and symbols from posix available: 17; 1.0