Vasily Levchenko 4c32689e1f unit test introduced:
User should create <test-name>-test.c file in the following manner:
> cat codegen/function/sum-test.c
extern void *resolve_symbol(const char*);

int
run_test() {
  int (*sum)(int, int) = resolve_symbol("kfun:sum");

  if (sum(2, 3) != 5) return 1;

  return 0;
}
and add <test-name> to the TESTS variable in the Makefile
to run tests:
> make clean run
Note: failing tests should return no zero values.
2016-10-10 15:11:55 +03:00
2016-10-10 15:11:55 +03:00
2016-10-07 14:14:00 +03:00
2016-09-28 16:08:44 +03:00
2016-10-07 14:14:00 +03:00
2016-09-28 18:11:40 +03:00
2016-09-28 18:42:43 +03:00

Kotlin-native backend

Build

First, build Kotlin IR branch tree with: pushd backend.native/kotlin-ir ant -f ./update_dependencies.xml jb_update ant -f ./build.xml popd

To build native translator just use: gradle :backend.native:run

And it will run simple example (currently prints out IR of test file).

S
Description
The Kotlin Programming Language.
Readme 2.1 GiB
Languages
Kotlin 79.9%
Java 10.4%
Swift 4.3%
C 2.8%
C++ 2.1%
Other 0.3%