about summary refs log tree commit diff stats
path: root/apps/factorial.mu
diff options
context:
space:
mode:
Diffstat (limited to 'apps/factorial.mu')
-rw-r--r--apps/factorial.mu5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/factorial.mu b/apps/factorial.mu
index a94be482..7d9015e2 100644
--- a/apps/factorial.mu
+++ b/apps/factorial.mu
@@ -1,13 +1,14 @@
 fn main -> exit-status/ebx: int {
 #?   run-tests
 #?   result <- copy 0
+  test-factorial # abc
   var tmp/eax: int <- factorial 5
   exit-status <- copy tmp
 }
 
 fn factorial n: int -> result/eax: int {
   compare n 1
-  {
+  { # foo
     break-if->
     result <- copy 1
   }
@@ -15,7 +16,7 @@ fn factorial n: int -> result/eax: int {
     break-if-<=
     var tmp/ecx: int <- copy n
     tmp <- decrement
-    result <- factorial tmp
+    result <- factorial tmp  # test comment
     result <- multiply n
   }
 }