Fixed long / double / float value merge in OptimizationBasicInterpreter #KT-7401 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-12-16 10:55:55 +03:00
parent 75089a3af8
commit f25f0db10e
5 changed files with 69 additions and 20 deletions
@@ -6895,6 +6895,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/regressions"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("doubleMerge.kt")
public void testDoubleMerge() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/doubleMerge.kt");
doTest(fileName);
}
@TestMetadata("floatMerge.kt")
public void testFloatMerge() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/floatMerge.kt");
doTest(fileName);
}
@TestMetadata("kt3107.kt")
public void testKt3107() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3107.kt");
@@ -6937,6 +6949,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt7401.kt")
public void testKt7401() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt7401.kt");
doTest(fileName);
}
@TestMetadata("unjustifiedReferenceTarget.kt")
public void testUnjustifiedReferenceTarget() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/unjustifiedReferenceTarget.kt");