Compare commits

..

No commits in common. "8eea6251cec10c103e1202e909fcf8c63dbf0ed9" and "7ad95aa11e79cc7b6eea72d0c7da5f208472e25e" have entirely different histories.

2 changed files with 2 additions and 8 deletions

View File

@ -1,4 +1,4 @@
define HEAP_SIZE = 0x8000;
define HEAP_SIZE = 0x030;
global heap[HEAP_SIZE] = 0;
define PADDING_SIZE = 4;

View File

@ -1,5 +1,3 @@
global HEAP_SIZE = 0x0030;
main()
{
local ptr1;
@ -9,11 +7,7 @@ main()
ptr1 = galloc(1);
test_int(ptr1, heap + LOCATION_DATA, "");
free(ptr1);
ptr1 = galloc(1);
test_int(ptr1, heap + LOCATION_DATA, "alloc after free");
free(ptr1);
ptr2 = galloc(0x9000);
test_int(ptr2, 0, "alloc too big");
ptr2 = galloc(1);
}