Some small test features
This commit is contained in:
parent
0260b2876c
commit
1690804821
1 changed files with 16 additions and 0 deletions
16
src/GC/tests/h_test.cpp
Normal file
16
src/GC/tests/h_test.cpp
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue