Don't signal an error on (setf (documentation nil 'function) "doc").
[sbcl.git] / tests / interface.impure.lisp
index 52b5fc2..ad10e6d 100644 (file)
            (equal (documentation 'test 'function)
                   (documentation 'test2 'function)))))
 
+(with-test (:name :setf-documentation-on-nil)
+  (assert
+   (handler-case
+       (assert (equal (setf (documentation nil 'function) "foo") "foo"))
+     (style-warning () t)
+     (:no-error (x)
+       (declare (ignore x))
+       nil))))
+
 \f
 ;;;; success