JVM_IR: Treat suspend main wrapper as always tail-call function

In other words, never generate suspend call markers inside it.
This commit is contained in:
Ilmir Usmanov
2020-02-20 18:49:06 +01:00
parent 8c4eef9844
commit 325ad14ac9
4 changed files with 21 additions and 1 deletions
@@ -1371,6 +1371,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTestWithPackageReplacement("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt", "kotlin.coroutines");
}
@TestMetadata("suspendMain.kt")
public void testSuspendMain() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/suspendMain.kt");
}
@TestMetadata("throwOnFailure.kt")
public void testThrowOnFailure() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/throwOnFailure.kt");