472ec72eb9
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
26 lines
427 B
Kotlin
Vendored
26 lines
427 B
Kotlin
Vendored
// FILE: soInlineWhileConditionDex.kt
|
|
// EMULATE_DEX: true
|
|
|
|
package soInlineWhileConditionDex
|
|
|
|
fun main(args: Array<String>) {
|
|
//Breakpoint!
|
|
var i = 1
|
|
// inline in while condition (true)
|
|
while (id { i < 2 }) {
|
|
i++
|
|
}
|
|
|
|
// inline in while condition (false)
|
|
while (id { false }) {
|
|
bar()
|
|
}
|
|
}
|
|
|
|
inline fun id(f: () -> Boolean): Boolean {
|
|
return f()
|
|
}
|
|
|
|
fun bar() {}
|
|
|
|
// STEP_OVER: 12 |