aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-16 05:28:18 +0200
committerlemon <lsof@mailbox.org>2022-08-16 05:28:18 +0200
commit73f68a9c5ed4c8139cc1c4f7695da29e5a3fb4c8 (patch)
treeb2cebcf1f6b6073eeeb0595710d6fdf05fcb06fb /examples
parentb3159bfd93c8bdce71f7437abdc521b5ccb72367 (diff)
stuff
Diffstat (limited to 'examples')
-rw-r--r--examples/hello-world.cff5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/hello-world.cff b/examples/hello-world.cff
index 9764ac2..4eb9352 100644
--- a/examples/hello-world.cff
+++ b/examples/hello-world.cff
@@ -1,6 +1,9 @@
extern fn printf(fmt *const u8, ...) int;
+extern fn cos(x f32) f32;
-extern fn main(argc int, argc *const *const u8) int {
+extern fn main(argc int, argv *const *const u8) int {
+ 1 - (1 + argv);
+ argc *= 7;
printf("hello world\n");
}