1.0.43.59: fix DEFSETF to reject non-symbols as functions names
[sbcl.git] / tests / setf.impure.lisp
index cd13d8d..b34349a 100644 (file)
     (assert (equal `(funcall #'(setf foo) ,@stores 1 2 3) set))
     (assert (equal '(foo 1 2 3) get))))
 
+(with-test (:name :update-fn-should-be-a-symbol-in-defsetf)
+  (assert (eq :error
+            (handler-case
+                (eval '(defsetf access-fn 5))
+              (error ()
+                :error)))))
+
 ;;; success