Ensure type of a stack value is coerced to the expected return type after the binary operation instruction with the different return type.

This commit is contained in:
Ilya Gorbunov
2015-07-11 16:09:22 +03:00
parent f7ccb3819e
commit 4ad6a8e301
6 changed files with 55 additions and 9 deletions
@@ -322,9 +322,21 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("longOverflow.kt")
public void testLongOverflow() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/binaryOp/longOverflow.kt");
@TestMetadata("overflowChar.kt")
public void testOverflowChar() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/binaryOp/overflowChar.kt");
doTest(fileName);
}
@TestMetadata("overflowInt.kt")
public void testOverflowInt() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/binaryOp/overflowInt.kt");
doTest(fileName);
}
@TestMetadata("overflowLong.kt")
public void testOverflowLong() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/binaryOp/overflowLong.kt");
doTest(fileName);
}
}