blob: 7df479229b0c190bc88a09472c0cff3ba2b9c48b [file]
// 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:10 box
// test.kt:6 main
// test.kt:7 main
// test.kt:11 box