Skip to content
Snippets Groups Projects
Commit dc29bb48 authored by pfdietz's avatar pfdietz
Browse files

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

parent 75f386f4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment