Fix debugger-related tests after dead code elimination improvements

This commit is contained in:
Dmitry Petrov
2017-05-12 17:56:55 +03:00
parent fe7870a1cd
commit 65799a5cb4
4 changed files with 9 additions and 25 deletions

View File

@@ -1,14 +0,0 @@
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