Skip to content
Snippets Groups Projects
Commit 82a1bceb authored by Jakob Kaiser's avatar Jakob Kaiser
Browse files

malloc() does not guarantee contiguous memory when called successively

Change-Id: Idde22b8130c222033a08105556d6333b70d9f2b8
parent 11895f75
No related branches found
Tags ebrains-6.0-rc2
No related merge requests found
......@@ -12,7 +12,6 @@ void start(void) {
int* j = reinterpret_cast<int*>(malloc(sizeof(int)));
test_not_null(i);
test_not_null(j);
test_true((((intptr_t)i + (intptr_t)sizeof(int)) == (intptr_t)j));
testcase_end();
test_summary();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment