about summary refs log tree commit diff stats
path: root/apps/mu.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-29 00:02:30 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-29 00:02:30 -0800
commitd1e76aaa9de6a48ad31ce4ab17d2e193756ea5ff (patch)
treecb64f574722ab4bfbe9412956f769435a1e14db6 /apps/mu.subx
parent261a1b7480f312c5fd73445e5ccf331ff4ca3f86 (diff)
downloadmu-d1e76aaa9de6a48ad31ce4ab17d2e193756ea5ff.tar.gz
5946
Diffstat (limited to 'apps/mu.subx')
-rw-r--r--apps/mu.subx12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index 5b883b99..fc4dcd12 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -1154,7 +1154,7 @@ test-convert-function-with-local-var-in-block:
 test-convert-function-with-local-var-in-named-block:
     # empty function decl => function prologue and epilogue
     #   fn foo {
-    #     foo: {
+    #     bar: {
     #       var x: int
     #       increment x
     #     }
@@ -1166,12 +1166,12 @@ test-convert-function-with-local-var-in-named-block:
     #     89/<- %ebp 4/r32/esp
     #     {
     #       {
-    #     foo:loop:
+    #     bar:loop:
     #         68/push 0/imm32
     #         ff 0/subop/increment *(ebp-4)
     #         81 0/subop/add %esp 4/imm32
     #       }
-    #     foo:break:
+    #     bar:break:
     #     }
     #     # . epilogue
     #     89/<- %esp 5/r32/ebp
@@ -1187,7 +1187,7 @@ test-convert-function-with-local-var-in-named-block:
     (clear-stream $_test-output-buffered-file->buffer)
     #
     (write _test-input-stream "fn foo {\n")
-    (write _test-input-stream "  foo: {\n")
+    (write _test-input-stream "  bar: {\n")
     (write _test-input-stream "    var x: int\n")
     (write _test-input-stream "    increment x\n")
     (write _test-input-stream "  }\n")
@@ -1208,12 +1208,12 @@ test-convert-function-with-local-var-in-named-block:
     (check-next-stream-line-equal _test-output-stream "89/<- %ebp 4/r32/esp"  "F - test-convert-function-with-local-var-in-named-block/3")
     (check-next-stream-line-equal _test-output-stream "{"                     "F - test-convert-function-with-local-var-in-named-block/4")
     (check-next-stream-line-equal _test-output-stream "{"                     "F - test-convert-function-with-local-var-in-named-block/5")
-    (check-next-stream-line-equal _test-output-stream "foo:loop:"             "F - test-convert-function-with-local-var-in-named-block/6")
+    (check-next-stream-line-equal _test-output-stream "bar:loop:"             "F - test-convert-function-with-local-var-in-named-block/6")
     (check-next-stream-line-equal _test-output-stream "68/push 0/imm32"       "F - test-convert-function-with-local-var-in-named-block/7")
     (check-next-stream-line-equal _test-output-stream "ff 0/subop/increment *(ebp+0xfffffffc)"  "F - test-convert-function-with-local-var-in-named-block/8")
     (check-next-stream-line-equal _test-output-stream "81 0/subop/add %esp 0x00000004/imm32"  "F - test-convert-function-with-local-var-in-named-block/9")
     (check-next-stream-line-equal _test-output-stream "}"                     "F - test-convert-function-with-local-var-in-named-block/10")
-    (check-next-stream-line-equal _test-output-stream "foo:break:"            "F - test-convert-function-with-local-var-in-named-block/11")
+    (check-next-stream-line-equal _test-output-stream "bar:break:"            "F - test-convert-function-with-local-var-in-named-block/11")
     (check-next-stream-line-equal _test-output-stream "}"                     "F - test-convert-function-with-local-var-in-named-block/12")
     (check-next-stream-line-equal _test-output-stream "# . epilogue"          "F - test-convert-function-with-local-var-in-named-block/13")
     (check-next-stream-line-equal _test-output-stream "89/<- %esp 5/r32/ebp"  "F - test-convert-function-with-local-var-in-named-block/14")