stdlib: Move exit function to porting layer

This commit is contained in:
Ilya Matveev
2017-09-04 18:31:46 +03:00
committed by ilmat192
parent ea667ebc5c
commit c32b84efd1
6 changed files with 31 additions and 2 deletions
@@ -2,4 +2,6 @@ import kotlin.system.*
fun main(args: Array<String>) {
exitProcess(42)
@Suppress("UNREACHABLE_CODE")
throw RuntimeException("Exit function call returned normally")
}