A -produce dynamic test.
This commit is contained in:
committed by
alexander-gorshenev
parent
ff4a0a03b2
commit
bf612fdbdc
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user