mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
All bytecode text tests are run with stdlib in the classpath and only for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND, IGNORE_BACKEND are not needed
13 lines
175 B
Kotlin
Vendored
13 lines
175 B
Kotlin
Vendored
fun add(x: Int, y: Int) = x + y
|
|
|
|
fun test() {
|
|
var x = 0
|
|
run {
|
|
x += add(1, try { 1 } catch (e: Throwable) { 42 })
|
|
}
|
|
}
|
|
|
|
// 0 NEW
|
|
// 0 GETFIELD
|
|
// 0 PUTFIELD
|