Files

24 lines
415 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// ^^ Because main function will be called firstly with empty arguments that will chrash runtime
// FILE: test.kt
fun main(args: Array<String>) {
args[0]
}
fun box() {
main(arrayOf("OK"))
}
// EXPECTATIONS JVM_IR
// test.kt:10 box
// test.kt:6 main
// test.kt:7 main
// test.kt:11 box
// EXPECTATIONS JS_IR
// test.kt:10 box
// test.kt:6 main
// test.kt:7 main
// test.kt:11 box