diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-02-10 01:01:43 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-02-14 01:57:30 -0800 |
commit | 5946a64453acf292a85f75d2560c4f7531946702 (patch) | |
tree | 5c437afe0742d60c42a5a587a0ac986f148e1be8 /apps | |
parent | 1f029c3b5733540aec775117dfa1d03447d563db (diff) | |
download | mu-5946a64453acf292a85f75d2560c4f7531946702.tar.gz |
6006
Diffstat (limited to 'apps')
-rw-r--r-- | apps/factorial.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/factorial.mu b/apps/factorial.mu index 5177daeb..a94be482 100644 --- a/apps/factorial.mu +++ b/apps/factorial.mu @@ -1,8 +1,8 @@ -fn main -> result/ebx: int { +fn main -> exit-status/ebx: int { #? run-tests #? result <- copy 0 var tmp/eax: int <- factorial 5 - result <- copy tmp + exit-status <- copy tmp } fn factorial n: int -> result/eax: int { |