KT-3706 Inconsistent stack height in try catch finally in function

KT-4134 Incorrect bytecode is generated for

 #KT-3706 Fixed
 #KT-4134 Fixed
This commit is contained in:
Mikhael Bogdanov
2014-02-07 13:45:22 +04:00
parent 7b07b748cb
commit e0ca1abe4b
4 changed files with 58 additions and 1 deletions
@@ -2544,6 +2544,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/finally/kt3549.kt");
}
@TestMetadata("kt3706.kt")
public void testKt3706() throws Exception {
doTest("compiler/testData/codegen/box/finally/kt3706.kt");
}
@TestMetadata("kt3867.kt")
public void testKt3867() throws Exception {
doTest("compiler/testData/codegen/box/finally/kt3867.kt");
@@ -2559,6 +2564,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/finally/kt3894.kt");
}
@TestMetadata("kt4134.kt")
public void testKt4134() throws Exception {
doTest("compiler/testData/codegen/box/finally/kt4134.kt");
}
@TestMetadata("loopAndFinally.kt")
public void testLoopAndFinally() throws Exception {
doTest("compiler/testData/codegen/box/finally/loopAndFinally.kt");