Convert tests to valid C++ code
authorJay Krell <jaykrell@microsoft.com>
Sun, 4 Feb 2018 08:35:26 +0000 (03:35 -0500)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 5 Feb 2018 08:11:56 +0000 (11:11 +0300)
commit8086c72218f9da72cd493af9763cdacbae27df42
treeaf54633257af7264f4f8a332c57d0bced2005b74
parentd556cc35f52e8e5f4965611ee08f145bb91ac039
Convert tests to valid C++ code

Issue #201 (bdwgc).

* tests/leak_test.c (main): Add explicit casts of void* pointer
(returned by malloc) to the types of the variables the relevant
pointers are assigned to.
* tests/realloc_test.c (main): Likewise.
* tests/smash_test.c (main): Likewise.
* tests/test.c (run_one_test): Likewise.
* tests/test.c (typed_test): Rename "new" local variable to "newP".
tests/leak_test.c
tests/realloc_test.c
tests/smash_test.c
tests/test.c