X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fsetf.impure.lisp;h=b6b7d2f288a562639989fbe92b34567769f3dc1a;hb=8fb553e9d867f6345932beaa78fcd07d8d4e555b;hp=b34349a2ae2d31eb0b5ed10089260bc43396cc1a;hpb=cc24446c5ba765a69c0465832f1ed43227fccd47;p=sbcl.git diff --git a/tests/setf.impure.lisp b/tests/setf.impure.lisp index b34349a..b6b7d2f 100644 --- a/tests/setf.impure.lisp +++ b/tests/setf.impure.lisp @@ -107,4 +107,11 @@ (error () :error))))) +(with-test (:name :getf-unused-default-variable) + (handler-bind ((style-warning #'error)) + (compile nil `(lambda (x y) + (setf (gethash :x x 0) 4) + (setf (getf y :y 0) 4) + (setf (get 'z :z 0) 4))))) + ;;; success