diff options
Diffstat (limited to 'apps/ex2.mu')
-rw-r--r-- | apps/ex2.mu | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/ex2.mu b/apps/ex2.mu deleted file mode 100644 index 16f04d29..00000000 --- a/apps/ex2.mu +++ /dev/null @@ -1,19 +0,0 @@ -# Add 3 and 4, and return the result in the exit code. -# -# To run: -# $ ./translate_mu apps/ex2.mu -# $ ./a.elf -# Expected result: -# $ echo $? -# 7 - -fn main -> _/ebx: int { - var result/eax: int <- do-add 3 4 - return result -} - -fn do-add a: int, b: int -> _/eax: int { - var result/ecx: int <- copy a - result <- add b - return result -} |