From 9570e47162937fc734105c49b85fd8cc53e94257 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Thu, 6 Mar 2025 09:30:30 +0330 Subject: Fixed stuff broken woohoo --- main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 8b95eb5..8c7585c 100644 --- a/main.c +++ b/main.c @@ -10,9 +10,10 @@ const enum { test_array, test_hashtable_2, test_garbage_collector, - test_minor_features + test_minor_features, + test_garbage_collector_2 } current_test - = test_minor_features; + = test_garbage_collector_2; int main() { if (current_test == test_alloc) { @@ -94,6 +95,9 @@ int main() { println(x); // Normal float enhancement println(12.34); + } else if (current_test == test_garbage_collector_2) { + for (u8 i = 0; i < 9999; i++) new (int, 9999); + collect_garbage(true); } else { -- cgit v1.2.3