Minor. Add test to check fallback
This commit is contained in:
+5
@@ -158,6 +158,11 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
// !LANGUAGE: -MangleClassMembersReturningInlineClasses
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// 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
|
||||
|
||||
// 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
|
||||
}
|
||||
+5
@@ -163,6 +163,11 @@ public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotl
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
|
||||
Generated
+5
@@ -158,6 +158,11 @@ public class IrCompileKotlinAgainstKotlinTestGenerated extends AbstractIrCompile
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
|
||||
+5
@@ -158,6 +158,11 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
|
||||
+5
@@ -158,6 +158,11 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
|
||||
Reference in New Issue
Block a user