A -produce dynamic test.

This commit is contained in:
Alexander Gorshenev
2017-12-13 17:40:43 +03:00
committed by alexander-gorshenev
parent ff4a0a03b2
commit bf612fdbdc
6 changed files with 61 additions and 5 deletions
+6
View File
@@ -2336,6 +2336,12 @@ if (isMac()) {
}
}
task produce_dynamic(type: DynamicKonanTest) {
source = "produce_dynamic/simple/hello.kt"
cSource = "$projectDir/produce_dynamic/simple/main.c"
goldValue = "Hello, dynamic!\n"
}
task buildKonanTests(type: BuildKonanTest) {
compileList = [ "codegen", "datagen", "lower", "runtime", "serialization"]
@@ -0,0 +1,4 @@
fun hello() {
println("Hello, dynamic!")
}
@@ -0,0 +1,7 @@
#include "testlib_api.h"
int main(void) {
testlib_symbols()->kotlin.root.hello();
return 0;
}