heap: added aligned alloc implementation on multi_heap layer

This commit is contained in:
Felipe Neves
2020-02-28 13:17:34 -03:00
parent 520ae6543d
commit 98e561b79a
2 changed files with 60 additions and 2 deletions

View File

@@ -14,10 +14,10 @@
/* (can't realloc in place if comprehensive is enabled) */
TEST_CASE("realloc shrink buffer in place", "[heap]")
{
{
void *x = malloc(64);
TEST_ASSERT(x);
void *y = realloc(p, 48);
void *y = realloc(x, 48);
TEST_ASSERT_EQUAL_PTR(x, y);
}