Support suspend fun main in JVM

#KT-17679 Fixed
This commit is contained in:
Denis Zharkov
2018-09-06 11:21:10 +03:00
parent 272ee252d8
commit c3f6ba3302
11 changed files with 233 additions and 1 deletions
@@ -41,6 +41,13 @@ public class CompilerSmokeTest extends CompilerSmokeTestBase {
run("hello.run", "-cp", jar, "Hello.HelloKt");
}
public void testHelloAppSuspendMain() throws Exception {
String jar = tmpdir.getAbsolutePath() + File.separator + "hello.jar";
assertEquals("compilation failed", 0, runCompiler("hello.compile", "-include-runtime", "hello.kt", "-d", jar));
run("hello.run", "-cp", jar, "Hello.HelloKt", "O", "K");
}
public void testCompilationFailed() throws Exception {
String jar = tmpdir.getAbsolutePath() + File.separator + "smoke.jar";