summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-18 12:22:58 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-18 12:22:58 +0330
commit7903ae7711f323697bbc42ad756c8ea0138c70dc (patch)
tree117f2b35a89c0c48b2902dbeccf1f5d63f29294e /test
parentcb6eaf13c3b3b58779a18255177589d8d5fbf85b (diff)
add f16 f32 f64 f128
Diffstat (limited to 'test')
-rw-r--r--test/main.felan18
1 files changed, 7 insertions, 11 deletions
diff --git a/test/main.felan b/test/main.felan
index fb8e2e0..4b635bb 100644
--- a/test/main.felan
+++ b/test/main.felan
@@ -1,14 +1,10 @@
main :: () -> void {
- a :i8 = 121312;
- b :u8 = 1;
- c :i16 = 1;
- d :u16 = 1;
- e :i32 = 1;
- f :u32 = 1;
- g :i64 = 1;
- h :u64 = 1;
- if a == 2
- print_u64 h;
+ a :f32 = 23;
+ b :f64 = 54.5;
+ c :f128 = 1.0;
+ d :f16 = 5.5;
+ if a == 23
+ print_u64 1;
else
- print_u64 h+2;
+ print_u64 2;
};