Replace GC_MALLOC(sizeof T) with GC_NEW(T) in tests
authorIvan Maidanski <ivmai@mail.ru>
Fri, 9 Feb 2018 07:55:32 +0000 (10:55 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 9 Feb 2018 07:55:32 +0000 (10:55 +0300)
commitc6fd81b3049a49a4531be39f5ee8820c13195c45
treebf403b472eef033dbbee54dd22dc1ff6c7ef0d3a
parent58241e9ff196d3c957ed7367f64ac35b2f80ef5d
Replace GC_MALLOC(sizeof T) with GC_NEW(T) in tests
(code refactoring)

* tests/realloc_test.c (main): Replace (T*)GC_MALLOC(sizeof(T)) with
GC_NEW(T).
* tests/test.c (small_cons, mktree, run_one_test): Likewise.
tests/realloc_test.c
tests/test.c