[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests

This commit is contained in:
Dmitriy Novozhilov
2021-01-22 15:13:50 +03:00
parent 1ea4fa4464
commit 5c8d555808
147 changed files with 3749 additions and 2743 deletions
@@ -0,0 +1,31 @@
// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: +InlineClasses
// MODULE: lib
// FILE: 1.kt
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
package test
inline class IC(val s: String)
fun ordinary(s: String, ic: IC): String = s + ic.s
suspend fun suspend(s: String, ic: IC): String = s + ic.s
// MODULE: main(lib)
// FILE: 2.kt
import kotlin.coroutines.*
import test.*
fun builder(c: suspend () -> Unit) {
c.startCoroutine(Continuation(EmptyCoroutineContext) {})
}
fun box(): String {
var res = ordinary("O", IC("K"))
if (res != "OK") return "FAIL 1: $res"
builder {
res = suspend("O", IC("K"))
}
return res
}