Preventively allocate slots for additional default parameters

Otherwise they are corrupted by inline
This commit is contained in:
Mikhael Bogdanov
2017-07-03 15:37:12 +02:00
parent 5453f3067c
commit 01e2f8e32c
8 changed files with 174 additions and 3 deletions
@@ -949,6 +949,18 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class DefaultValues extends AbstractBlackBoxInlineCodegenTest {
@TestMetadata("33Parameters.kt")
public void test33Parameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/defaultValues/33Parameters.kt");
doTest(fileName);
}
@TestMetadata("33ParametersInConstructor.kt")
public void test33ParametersInConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/defaultValues/33ParametersInConstructor.kt");
doTest(fileName);
}
public void testAllFilesPresentInDefaultValues() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/defaultValues"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}