diff --git a/src/GC/tests/h_test.cpp b/src/GC/tests/h_test.cpp new file mode 100644 index 0000000..914e65c --- /dev/null +++ b/src/GC/tests/h_test.cpp @@ -0,0 +1,16 @@ +#include "../include/heap.hpp" + +GC::Heap gc; + +void init() { + gc = GC::Heap::the(); // pointer to the heap + std::vector live_int_vec(100); + std::vector dead_int_vec(100); + gc.alloc(sizeof(live_int_vec)); + gc.alloc(sizeof(dead_int_vec)); +} + +int main() { + gc.print_contents(); + return 0; +} \ No newline at end of file