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.mu19
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/ex2.2.mu b/apps/ex2.2.mu
deleted file mode 100644
index b177e770..00000000
--- a/apps/ex2.2.mu
+++ /dev/null
@@ -1,19 +0,0 @@
-# Increment a number, and return the result in the exit code.
-#
-# To run:
-#   $ ./translate_mu apps/ex2.2.mu
-#   $ ./a.elf
-# Expected result:
-#   $ echo $?
-#   7
-
-fn main -> result/ebx: int {
-  result <- foo
-}
-
-fn foo -> result/ebx: int {
-  var n: int
-  copy-to n, 3
-  increment n
-  result <- copy n
-}