From 16908048213735c9634590f70ef57885bf2f0570 Mon Sep 17 00:00:00 2001 From: valtermiari Date: Wed, 15 Feb 2023 10:40:35 +0100 Subject: [PATCH] Some small test features --- src/GC/tests/h_test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/GC/tests/h_test.cpp 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