Minor, add compileKotlinAgainstKotlin test case for KT-41374

This commit is contained in:
Alexander Udalov
2020-08-31 12:14:35 +02:00
parent 9e357354fb
commit ae448ececb
5 changed files with 49 additions and 0 deletions
@@ -0,0 +1,29 @@
// WITH_COROUTINES
// FILE: a.kt
package a
var result = ""
inline class P(val value: String)
suspend fun foo(p: P = P("OK")) {
result = p.value
}
// FILE: b.kt
import kotlin.coroutines.*
import helpers.*
import a.*
fun builder(c: suspend () -> Unit) {
c.startCoroutine(EmptyContinuation)
}
fun box(): String {
builder {
foo()
}
return result
}
@@ -363,6 +363,11 @@ public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotl
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
}
@TestMetadata("suspendFunWithDefaultMangling.kt")
public void testSuspendFunWithDefaultMangling() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
}
@TestMetadata("targetedJvmName.kt")
public void testTargetedJvmName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
@@ -358,6 +358,11 @@ public class IrCompileKotlinAgainstKotlinTestGenerated extends AbstractIrCompile
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
}
@TestMetadata("suspendFunWithDefaultMangling.kt")
public void testSuspendFunWithDefaultMangling() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
}
@TestMetadata("targetedJvmName.kt")
public void testTargetedJvmName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
@@ -358,6 +358,11 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
}
@TestMetadata("suspendFunWithDefaultMangling.kt")
public void testSuspendFunWithDefaultMangling() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
}
@TestMetadata("targetedJvmName.kt")
public void testTargetedJvmName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
@@ -358,6 +358,11 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
}
@TestMetadata("suspendFunWithDefaultMangling.kt")
public void testSuspendFunWithDefaultMangling() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
}
@TestMetadata("targetedJvmName.kt")
public void testTargetedJvmName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");