Allow a couple of test pass on linux_mips32 target.

This commit is contained in:
alexander-gorshenev
2017-10-23 15:09:45 +03:00
parent 21e376cc46
commit 5700fa8cea
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import kotlinx.cinterop.signExtend
import platform.posix.*
fun main(args: Array<String>) {
// Just check the typealias is in scope.
val sizet: size_t = 0L
val sizet: size_t = 0.signExtend<size_t>()
println("sizet = $sizet")
}
+2 -1
View File
@@ -1,8 +1,9 @@
import kotlinx.cinterop.signExtend
import platform.posix.*
fun foo() {
println("linked library")
val size: size_t = 17L
val size: size_t = 17.signExtend<size_t>()
val e = fabs(1.toDouble())
println("and symbols from posix available: $size; $e")
}