IronGOLEM/tests/galloc.🗿

14 lines
230 B
Plaintext
Raw Normal View History

main()
{
2023-06-18 05:11:23 -04:00
local ptr1;
local ptr2;
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);
}