Some small test features

This commit is contained in:
valtermiari 2023-02-15 10:40:35 +01:00 committed by Victor Olin
parent 0260b2876c
commit 1690804821

16
src/GC/tests/h_test.cpp Normal file
View file

@ -0,0 +1,16 @@
#include "../include/heap.hpp"
GC::Heap gc;
void init() {
gc = GC::Heap::the(); // pointer to the heap
std::vector<int> live_int_vec(100);
std::vector<int> dead_int_vec(100);
gc.alloc(sizeof(live_int_vec));
gc.alloc(sizeof(dead_int_vec));
}
int main() {
gc.print_contents();
return 0;
}