about summary refs log tree commit diff stats
path: root/apps/ex2.2.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ex2.2.mu')
-rw-r--r--apps/ex2.2.mu10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/ex2.2.mu b/apps/ex2.2.mu
new file mode 100644
index 00000000..c5ee45bb
--- /dev/null
+++ b/apps/ex2.2.mu
@@ -0,0 +1,10 @@
+fn main -> result/ebx: int {
+  result <- foo
+}
+
+fn foo -> result/ebx: int {
+  var n: int
+  copy-to n 3
+  increment n
+  result <- copy n
+}