summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-18 23:42:10 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-18 23:42:10 +0330
commitdf4604f27bbd8ed42ea2c7026c7e4845aafd1a8b (patch)
treed877ced731ba28bf0ae8878d18b7eb392ff51404 /test
parent9eb9be33d7623a4759b0794073bd32489b865b3d (diff)
add while
fix some memory leaks
Diffstat (limited to 'test')
-rw-r--r--test/main.felan11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/main.felan b/test/main.felan
index 9d77aea..b99a284 100644
--- a/test/main.felan
+++ b/test/main.felan
@@ -1,10 +1,7 @@
main :: () -> void {
- a :f32 = 23;
- b :f64 = 54.5;
- c :f128 = 1.0;
- d :f16 = 5.5;
- if -a == -23.0
- print_u64 1;
- else
+ a := 10000;
+ while a > 0 {
print_u64 2;
+ a = a -1;
+ }
};