mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
Test data should be a Kotlin source file with zero or more comments e.g. of the form: '// 1 INVOKEVIRTUAL'. The test then checks that the generated bytecode for this file contains exactly one occurrence of the string 'INVOKEVIRTUAL'
26 lines
270 B
Kotlin
Vendored
26 lines
270 B
Kotlin
Vendored
fun z() {}
|
|
|
|
fun foo() {
|
|
try {
|
|
z()
|
|
} catch (e: Exception) {
|
|
z()
|
|
}
|
|
|
|
try {
|
|
z()
|
|
} finally {
|
|
z()
|
|
}
|
|
|
|
try {
|
|
z()
|
|
} catch (e: Exception) {
|
|
z()
|
|
} finally {
|
|
z()
|
|
}
|
|
}
|
|
|
|
// 0 GETSTATIC
|