mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +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'
12 lines
116 B
Kotlin
Vendored
12 lines
116 B
Kotlin
Vendored
fun foo() {
|
|
if (0 < 1) {
|
|
return
|
|
}
|
|
|
|
if (1 < 2) else {
|
|
return
|
|
}
|
|
}
|
|
|
|
// 0 GETSTATIC
|