Files
kotlin/compiler/testData/codegen/bytecodeText/inline/linenumberForNoParametersArgumentCallInExpression.kt
Dmitry Petrov 1378b0cf05 Fix bytecode tests after new optimizations
- Turn some const conditions into non-const conditions
- Make sure inlined const values are used where required
(otherwise they are eliminated by POP backward propagation)
2017-05-16 17:28:43 +03:00

14 lines
245 B
Kotlin
Vendored

fun box() {
lookAtMe {
12
}
}
inline fun lookAtMe(f: () -> Int): Int {
val a = 42
a + f() // Even this line already has meaningful instraction nop is still generated
return 13
}
// TODO: Less NOPs is better
// 2 NOP