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_int(ptr1, heap + LOCATION_DATA, "");
2023-06-18 05:11:23 -04:00
free(ptr1);
ptr1 = galloc(1);
test_int(ptr1, heap + LOCATION_DATA, "alloc after free");
2023-06-18 05:11:23 -04:00
ptr2 = galloc(1);
}