Commit dc29bb48 authored by pfdietz's avatar pfdietz

Add a test that DO-ALL-SYMBOLS really does return when a RETURN is executed.

parent 75f386f4
......@@ -110,3 +110,15 @@
(do-all-symbols (s x)
(declare (special x)))))
:good)
;;; Executing a return actually terminates the loop
(deftest do-all-symbols.12
(let ((should-have-returned nil))
(block done
(do-all-symbols (s :bad1)
(when should-have-returned
(return-from done :bad2))
(setq should-have-returned t)
(return :good))))
:good)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment