Add tests for data class runtime string concatenation
#KT-35176
This commit is contained in:
Generated
+10
@@ -4506,6 +4506,11 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicDataClass.kt")
|
||||
public void testConcatDynamicDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicIndy.kt")
|
||||
public void testConcatDynamicIndy() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy.kt");
|
||||
@@ -4516,6 +4521,11 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy201.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicIndyDataClass.kt")
|
||||
public void testConcatDynamicIndyDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndyDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatNotDynamic.kt")
|
||||
public void testConcatNotDynamic() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatNotDynamic.kt");
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// JVM_TARGET: 9
|
||||
data class A(val i: Int, val b: Byte, val c: Char, val s: Short, val f: Float, val d: Double, val bo: Boolean, val l: Long)
|
||||
|
||||
// 1 INVOKEDYNAMIC makeConcatWithConstants
|
||||
// 1 INVOKEDYNAMIC makeConcatWithConstants\(IBCSFDZJ\)Ljava/lang/String;
|
||||
// 1 "A\(i=\\u0001, b=\\u0001, c=\\u0001, s=\\u0001, f=\\u0001, d=\\u0001, bo=\\u0001, l=\\u0001\)"
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy
|
||||
// JVM_TARGET: 9
|
||||
data class A(val i: Int, val b: Byte, val c: Char, val s: Short, val f: Float, val d: Double, val bo: Boolean, val l: Long)
|
||||
|
||||
// 1 INVOKEDYNAMIC makeConcat
|
||||
// 1 INVOKEDYNAMIC makeConcat\(Ljava/lang/String;ILjava/lang/String;BLjava/lang/String;CLjava/lang/String;SLjava/lang/String;FLjava/lang/String;DLjava/lang/String;ZLjava/lang/String;JLjava/lang/String;\)Ljava/lang/String;
|
||||
@@ -4538,6 +4538,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicDataClass.kt")
|
||||
public void testConcatDynamicDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicIndy.kt")
|
||||
public void testConcatDynamicIndy() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy.kt");
|
||||
@@ -4548,6 +4553,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy201.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicIndyDataClass.kt")
|
||||
public void testConcatDynamicIndyDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndyDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatNotDynamic.kt")
|
||||
public void testConcatNotDynamic() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatNotDynamic.kt");
|
||||
|
||||
+10
@@ -4506,6 +4506,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicDataClass.kt")
|
||||
public void testConcatDynamicDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicIndy.kt")
|
||||
public void testConcatDynamicIndy() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy.kt");
|
||||
@@ -4516,6 +4521,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy201.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatDynamicIndyDataClass.kt")
|
||||
public void testConcatDynamicIndyDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndyDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("concatNotDynamic.kt")
|
||||
public void testConcatNotDynamic() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatNotDynamic.kt");
|
||||
|
||||
Reference in New Issue
Block a user