Migrate boxInline tests to new multi-file framework

This commit is contained in:
Alexander Udalov
2016-02-24 13:29:32 +03:00
committed by Alexander Udalov
parent fa1f7d988e
commit cc84aabdcf
586 changed files with 6946 additions and 5639 deletions
@@ -0,0 +1,23 @@
// FILE: 1.kt
class Inline {
inline fun calc(s: (Int) -> Int, p: Int) : Int {
return s(p)
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
fun test1(): Int {
val inlineX = Inline()
var p = { l : Int -> l};
return inlineX.calc(p, 25)
}
fun box(): String {
if (test1() != 25) return "test1: ${test1()}"
return "OK"
}