2023-06-14 11:51:21 -04:00
|
|
|
main()
|
|
|
|
{
|
2023-06-18 05:11:23 -04:00
|
|
|
local ptr1;
|
|
|
|
local ptr2;
|
2023-06-14 11:51:21 -04:00
|
|
|
name = "galloc";
|
2023-06-18 05:11:23 -04:00
|
|
|
|
|
|
|
ptr1 = galloc(1);
|
|
|
|
test_str(ptr1, heap + LOCATION_DATA, "");
|
|
|
|
free(ptr1);
|
|
|
|
ptr1 = galloc(1);
|
|
|
|
test_str(ptr1, heap + LOCATION_DATA, "alloc after free");
|
|
|
|
ptr2 = galloc(1);
|
2023-06-14 11:51:21 -04:00
|
|
|
}
|