about summary refs log tree commit diff stats
path: root/tutorial/task8a.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-26 23:12:57 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-26 23:14:36 -0700
commitc7dde8d8b4338d478fc61c4a8ea5e1c84bf5513e (patch)
tree62a083cd61861ea57568986682d75f941d4972a0 /tutorial/task8a.mu
parent5713eb7302a11af489faeb3172cc376398db57e0 (diff)
downloadmu-c7dde8d8b4338d478fc61c4a8ea5e1c84bf5513e.tar.gz
task: primitive statements vs function calls
Diffstat (limited to 'tutorial/task8a.mu')
-rw-r--r--tutorial/task8a.mu10
1 files changed, 10 insertions, 0 deletions
diff --git a/tutorial/task8a.mu b/tutorial/task8a.mu
new file mode 100644
index 00000000..bba989f7
--- /dev/null
+++ b/tutorial/task8a.mu
@@ -0,0 +1,10 @@
+fn f a: int {
+}
+
+fn main {
+  f 0
+  var r/eax: int <- copy 3
+  f r
+  var m: int
+  f m
+}