[box-tests] Tests on field init optimization

Added tests on all primitive types and a test when the field's type is an inline class
This commit is contained in:
Igor Chevdar
2020-08-13 15:16:53 +05:00
parent 0328fcaf5d
commit e468a347b5
9 changed files with 102 additions and 4 deletions
@@ -23411,6 +23411,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization.kt");
}
@TestMetadata("fieldInitializerOptimization_inlineClass.kt")
public void testFieldInitializerOptimization_inlineClass() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization_inlineClass.kt");
}
@TestMetadata("generics.kt")
public void testGenerics() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/generics.kt");
@@ -23411,6 +23411,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization.kt");
}
@TestMetadata("fieldInitializerOptimization_inlineClass.kt")
public void testFieldInitializerOptimization_inlineClass() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization_inlineClass.kt");
}
@TestMetadata("generics.kt")
public void testGenerics() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/generics.kt");
@@ -23426,6 +23426,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization.kt");
}
@TestMetadata("fieldInitializerOptimization_inlineClass.kt")
public void testFieldInitializerOptimization_inlineClass() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/fieldInitializerOptimization_inlineClass.kt");
}
@TestMetadata("generics.kt")
public void testGenerics() throws Exception {
runTest("compiler/testData/codegen/box/secondaryConstructors/generics.kt");