about summary refs log tree commit diff stats
path: root/apps/ex3.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ex3.mu')
-rw-r--r--apps/ex3.mu21
1 files changed, 0 insertions, 21 deletions
diff --git a/apps/ex3.mu b/apps/ex3.mu
deleted file mode 100644
index d7e73140..00000000
--- a/apps/ex3.mu
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add the first 10 numbers, and return the result in the exit code.
-#
-# To run:
-#   $ ./translate_mu apps/browse.mu
-#   $ ./a.elf
-# Expected result:
-#   $ echo $?
-#   55
-
-fn main -> _/ebx: int {
-  var result/ebx: int <- copy 0
-  var i/eax: int <- copy 1
-  {
-    compare i, 0xa
-    break-if->
-    result <- add i
-    i <- increment
-    loop
-  }
-  return result
-}