diff options
| author | 2025-03-06 09:30:30 +0330 | |
|---|---|---|
| committer | 2025-03-06 09:30:30 +0330 | |
| commit | 9570e47162937fc734105c49b85fd8cc53e94257 (patch) | |
| tree | 21ab3c6ab3cc80924d2ae0ed350c5af2d005e27e /main.c | |
| parent | Added a capacity checker to the array structure (diff) | |
Fixed stuff broken woohoo
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 { |
