backend/tests: add interop0

This commit is contained in:
Svyatoslav Scherbina
2017-02-03 16:10:26 +07:00
committed by SvyatoslavScherbina
parent 5e54c29afb
commit 56bab774f1
2 changed files with 25 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import sysstat.*
import kotlinx.cinterop.*
fun main(args: Array<String>) {
val statBuf = nativeHeap.alloc<statStruct>()
val res = stat("/", statBuf.ptr)
println(res)
println(statBuf.st_uid.value)
}