Generate 'nop' instruction on lambda call when everything on line is going to be eliminated by inliner (KT-6477)

(cherry picked from commit 462bdb2)

 #KT-6477 Fixed
This commit is contained in:
Nikolay Krasko
2016-10-03 20:45:45 +03:00
committed by Nikolay Krasko
parent 708a0e3b5d
commit 87b628a3f7
11 changed files with 96 additions and 2 deletions
@@ -1063,6 +1063,18 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
doTest(fileName);
}
@TestMetadata("linenumberForNoParametersArgumentCallInExpression.kt")
public void testLinenumberForNoParametersArgumentCallInExpression() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/inline/linenumberForNoParametersArgumentCallInExpression.kt");
doTest(fileName);
}
@TestMetadata("linenumberForOneParametersArgumentCall.kt")
public void testLinenumberForOneParametersArgumentCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/inline/linenumberForOneParametersArgumentCall.kt");
doTest(fileName);
}
@TestMetadata("noSynAccessor.kt")
public void testNoSynAccessor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/inline/noSynAccessor.kt");