Files
kotlin/compiler/testData/codegen/bytecodeText/statements/ifThenElse.kt
Alexander Udalov 620143ae5b Add test on bytecode text
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'
2013-02-11 02:01:43 +04:00

12 lines
120 B
Kotlin

fun z(b: Boolean) {}
fun foo(b: Boolean) {
if (b) {
z(b)
} else {
z(b)
}
}
// 0 GETSTATIC