Test framewrk update: check lambda inlining

This commit is contained in:
Michael Bogdanov
2015-04-13 11:57:23 +03:00
parent 27c40edeb4
commit 7025a4f933
41 changed files with 176 additions and 51 deletions
@@ -1,3 +1,4 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun test1(s: Long): String {
@@ -1,10 +1,11 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
import java.util.*
fun test1(prefix: String): String {
var result = "fail"
mfun {
concat("start") {
noInline("start") {
if (it.startsWith(prefix)) {
result = "OK"
}
@@ -4,6 +4,6 @@ inline fun <R> mfun(f: () -> R) {
f()
}
fun concat(suffix: String, l: (s: String) -> Unit) {
fun noInline(suffix: String, l: (s: String) -> Unit) {
l(suffix)
}
@@ -1,5 +1,5 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
import kotlin.InlineOption.*
fun test1(param: String): String {
@@ -1,3 +1,4 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun sameName(s: Long): Long {
@@ -1,3 +1,4 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
import kotlin.InlineOption.*