Files
kotlin/compiler/testData/codegen/bytecodeText/conditions/conjunctionInDoWhile.kt
Jiaxiang Chen 4b99d85322 Optimize JVM byte code generation for conditional conjunction
Implement an intrinsic method for boolean.and operation, and replace
ANDAND condition with a call to such intrinsic method.
2019-04-29 13:28:18 +02:00

16 lines
174 B
Kotlin
Vendored

val a = false
val b = false
val c = false
fun main() {
do {
"loop"
} while (a && b && c)
}
// 0 ICONST_0
// 0 ICONST_1
// 2 IFEQ
// 1 IFNE
// 3 IF
// 0 GOTO