X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fsetf.impure.lisp;h=f14fce57167704ea19129a1b8628b3a380ebe03f;hb=2253ebaef8a0a1527d2282a1c10f48c62e0d4a83;hp=c9e73f2632a4c443ac3c906f2e81b213d814c678;hpb=7d33841eaefb309885a4f5fe23f6d6870f66d242;p=sbcl.git diff --git a/tests/setf.impure.lisp b/tests/setf.impure.lisp index c9e73f2..f14fce5 100644 --- a/tests/setf.impure.lisp +++ b/tests/setf.impure.lisp @@ -46,5 +46,10 @@ (assert (= x 1)) (assert (= y 2))) +;;; SETF of MACRO-FUNCTION must accept a NIL environment +(let ((fun (constantly 'ok))) + (setf (macro-function 'nothing-at-all nil) fun) + (assert (eq fun (macro-function 'nothing-at-all nil)))) + ;;; success (quit :unix-status 104)