projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't signal an error on (setf (documentation nil 'function) "doc").
[sbcl.git]
/
tests
/
interface.impure.lisp
diff --git
a/tests/interface.impure.lisp
b/tests/interface.impure.lisp
index
52b5fc2
..
ad10e6d
100644
(file)
--- a/
tests/interface.impure.lisp
+++ b/
tests/interface.impure.lisp
@@
-310,5
+310,14
@@
(equal (documentation 'test 'function)
(documentation 'test2 'function)))))
(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
\f
;;;; success