1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-14 01:16:48 +00:00

More test cases.

This commit is contained in:
Calvin Rose 2023-09-29 07:37:33 -05:00
parent 2d54e88e74
commit 8c90a12e0f

View File

@ -939,6 +939,12 @@
(defn case-3 [&]
(def x (break (do (foo)))))
(bytecode-roundtrip case-3)
(defn case-4 [&]
(def x (break (break (foo)))))
(bytecode-roundtrip case-4)
(defn case-4 [&]
(def x (break (break (break)))))
(bytecode-roundtrip case-4)
# Debug bytecode of these functions
# (pp (disasm case-1))