X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Floop.pure.lisp;h=408d18be7ad587e3af7af12ed5bf0d78f783e630;hb=7abb9e44907ef12b52ac26d6482fbe21c036ee9b;hp=febf5a79ca24ee8f0c436d4418dc05f6b411610e;hpb=7f321020769583880612fe291367b0141a88ab2a;p=sbcl.git diff --git a/tests/loop.pure.lisp b/tests/loop.pure.lisp index febf5a7..408d18b 100644 --- a/tests/loop.pure.lisp +++ b/tests/loop.pure.lisp @@ -214,3 +214,13 @@ (let ((x 2d0)) (loop for d of-type double-float downfrom 10d0 to 0d0 by x collect d)) '(10d0 8d0 6d0 4d0 2d0 0d0))) + +(let ((fn (handler-case + (compile nil '(lambda () + (declare (special x y)) + (loop thereis (pop x) thereis (pop y)))) + (warning (c) (error "Warned: ~S" c))))) + (let ((x (list nil nil 1)) + (y (list nil 2 nil))) + (declare (special x y)) + (assert (= (funcall fn) 2))))