/* Simple malloc tests.
*/
-#include <testfwk.h>
#include <stdlib.h>
#if defined(SDCC_pic16)
#include <malloc.h>
#endif
+#include <testfwk.h>
+#if defined(SDCC_pic16)
xdata char heap[100];
+#endif
void
testMalloc(void)
#if !defined(__GNUC__) && !defined(SDCC_gbz80) && !defined(SDCC_z80)
#if defined(SDCC_pic16)
_initHeap(heap, sizeof heap);
-#else
- init_dynamic_memory((MEMHEADER xdata *)heap, sizeof(heap));
#endif
- p1 = malloc(200);
+ p1 = malloc(2000);
ASSERT(p1 == NULL);
LOG(("p1 == NULL when out of memory\n"));
#ifdef PORT_HOST