JVM BE: Add more tests for default arguments

- Inline class parameters should not be boxed.
- Empty vararg parameters should not allocate an empty array.
This commit is contained in:
Steven Schäfer
2019-08-05 13:54:39 +02:00
committed by Georgy Bronnikov
parent 9d7de8e9ec
commit 79f71f61d5
4 changed files with 52 additions and 0 deletions
@@ -1579,6 +1579,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
public void testMethodHandlerElimination() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/methodHandlerElimination.kt");
}
@TestMetadata("noEmptyArray.kt")
public void testNoEmptyArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noEmptyArray.kt");
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/directInvoke")
@@ -2448,6 +2453,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/checkOuterInlineFunctionCall.kt");
}
@TestMetadata("defaultParametersDontBox.kt")
public void testDefaultParametersDontBox() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/defaultParametersDontBox.kt");
}
@TestMetadata("equalsIsCalledByInlineClass.kt")
public void testEqualsIsCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/equalsIsCalledByInlineClass.kt");