[Wasm] Fix invalid boxing for non-primitive typed vararg

This commit is contained in:
Igor Yakovlev
2022-12-07 19:51:43 +01:00
committed by teamcity
parent dc2dcfffee
commit 3be3ae4895
12 changed files with 104 additions and 2 deletions
@@ -36227,6 +36227,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("boxingArgumentsForVararg.kt")
public void testBoxingArgumentsForVararg() throws Exception {
runTest("compiler/testData/codegen/box/vararg/boxingArgumentsForVararg.kt");
}
@Test
@TestMetadata("doNotCopyImmediatelyCreatedArrays.kt")
public void testDoNotCopyImmediatelyCreatedArrays() throws Exception {
@@ -36407,6 +36407,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("boxingArgumentsForVararg.kt")
public void testBoxingArgumentsForVararg() throws Exception {
runTest("compiler/testData/codegen/box/vararg/boxingArgumentsForVararg.kt");
}
@Test
@TestMetadata("doNotCopyImmediatelyCreatedArrays.kt")
public void testDoNotCopyImmediatelyCreatedArrays() throws Exception {
@@ -36407,6 +36407,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("boxingArgumentsForVararg.kt")
public void testBoxingArgumentsForVararg() throws Exception {
runTest("compiler/testData/codegen/box/vararg/boxingArgumentsForVararg.kt");
}
@Test
@TestMetadata("doNotCopyImmediatelyCreatedArrays.kt")
public void testDoNotCopyImmediatelyCreatedArrays() throws Exception {
@@ -32610,6 +32610,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/vararg"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("boxingArgumentsForVararg.kt")
public void testBoxingArgumentsForVararg() throws Exception {
runTest("compiler/testData/codegen/box/vararg/boxingArgumentsForVararg.kt");
}
@TestMetadata("doNotCopyImmediatelyCreatedArrays.kt")
public void testDoNotCopyImmediatelyCreatedArrays() throws Exception {
runTest("compiler/testData/codegen/box/vararg/doNotCopyImmediatelyCreatedArrays.kt");