X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Floop.pure.lisp;h=804cac0c6f1454070ebd41b16b705e63f30c5c11;hb=0a15b6bbf9d5d3a64b5ac08bb96b6e5ec221d2ae;hp=84a833ad7e5f8bd0e11bafd45bec588b2ce7f15d;hpb=06333e9fbc30caf953a7510b8d51c71ab8637a72;p=sbcl.git diff --git a/tests/loop.pure.lisp b/tests/loop.pure.lisp index 84a833a..804cac0 100644 --- a/tests/loop.pure.lisp +++ b/tests/loop.pure.lisp @@ -256,3 +256,15 @@ (assert (equal '("foo" "bar") (funcall fun (vector "foo" "bar")))))) + +(with-test (:name :bug-lp613871) + (multiple-value-bind (function warnings-p failure-p) + (compile nil '(lambda () (loop with nil = 1 repeat 2 collect t))) + (assert (null warnings-p)) + (assert (null failure-p)) + (assert (equal '(t t) (funcall function)))) + (multiple-value-bind (function warnings-p failure-p) + (compile nil '(lambda () (loop with nil repeat 2 collect t))) + (assert (null warnings-p)) + (assert (null failure-p)) + (assert (equal '(t t) (funcall function)))))