aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-17 07:38:48 +0200
committerlemon <lsof@mailbox.org>2022-08-17 07:38:48 +0200
commit585e51cac05cbb4fbc54ae3381bea4f41320ff5d (patch)
treebc456bc650f5828e6058131ece28e726509b9caa /examples
parentc50a02ec703c7c1c5f6823c8cbd07a424d604792 (diff)
let
Diffstat (limited to 'examples')
-rw-r--r--examples/hello-world.cff3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/hello-world.cff b/examples/hello-world.cff
index a976450..29a1c03 100644
--- a/examples/hello-world.cff
+++ b/examples/hello-world.cff
@@ -2,6 +2,9 @@ extern fn printf(fmt *const u8, ...) int;
extern fn cos(x f32) f32;
extern fn main(argc int, argv *const *const u8) int {
+ let x = argv,
+ z = 3;
+ let foo = x + z;
printf("hello world\n");
}