Commit Graph

12 Commits

Author SHA1 Message Date
Konstantin Anisimov 152e738e23 Tests for "while" and "do-while" loop generation 2016-11-08 06:35:50 +03:00
Konstantin Anisimov ea149fab4e Tests for "PLUSEQ" and "MINUSEQ" 2016-11-07 18:00:30 +03:00
Konstantin Anisimov 3c68ee4ce5 testsuite updated to reflect recent changes in codegen: branch support 2016-11-07 17:34:01 +03:00
Konstantin Anisimov 4078e4004c tests for local variables 2016-11-03 16:19:03 +03:00
Konstantin Anisimov f02e0af5a2 various numeric literals' tests 2016-10-28 12:27:12 +03:00
Vasily Levchenko 64acd9d894 field acces test (when there're no storage in object for contructor parameter) (not runnable yet) 2016-10-22 09:32:48 +03:00
Vasily Levchenko 7d243378cd TEST:object initialization 2016-10-21 20:21:54 +03:00
Nikolay Igotti f02339c1dc Merge pull request #4 from JetBrains/mem_mgmt
Add memory mgmt.
2016-10-11 19:10:53 +03:00
Nikolay Igotti ecb5a67db7 Add City64 as local hash, and update RTTI accordingly. 2016-10-11 18:40:16 +03:00
Vasily Levchenko 3a738b2ad3 arithmetic test 2016-10-11 11:41:37 +03:00
Vasily Levchenko 97e31820ae inter-procedural call test 2016-10-11 11:24:47 +03:00
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