CFG: fix label binding for last instruction of finally block

So #KT-18698 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-07-12 13:15:38 +03:00
committed by Mikhail Glukhikh
parent ab0e734e7d
commit c0e1b3ef2d
6 changed files with 254 additions and 1 deletions
@@ -233,6 +233,12 @@ public class ControlFlowTestGenerated extends AbstractControlFlowTest {
doTest(fileName);
}
@TestMetadata("incorrectIndex.kt")
public void testIncorrectIndex() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cfg/controlStructures/incorrectIndex.kt");
doTest(fileName);
}
@TestMetadata("InfiniteLoops.kt")
public void testInfiniteLoops() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cfg/controlStructures/InfiniteLoops.kt");
@@ -235,6 +235,12 @@ public class PseudoValueTestGenerated extends AbstractPseudoValueTest {
doTest(fileName);
}
@TestMetadata("incorrectIndex.kt")
public void testIncorrectIndex() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cfg/controlStructures/incorrectIndex.kt");
doTest(fileName);
}
@TestMetadata("InfiniteLoops.kt")
public void testInfiniteLoops() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cfg/controlStructures/InfiniteLoops.kt");