X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclos.impure.lisp;fp=tests%2Fclos.impure.lisp;h=56fb8c374a5370f9c7dcc4ce650799528535b67b;hb=b5cb7e8676a8bb88e647ceaf5f2571943b960c05;hp=ec9dffcb10006840dd63b2d5904cac567ff635d1;hpb=26772483a9f3e4d5222cba7b8a2a9873294ca3ab;p=sbcl.git diff --git a/tests/clos.impure.lisp b/tests/clos.impure.lisp index ec9dffc..56fb8c3 100644 --- a/tests/clos.impure.lisp +++ b/tests/clos.impure.lisp @@ -1872,4 +1872,20 @@ (symbol-name s))) (assert (equal "FOO" (funcall 'lp-618387 :foo))))) +(with-test (:name :pcl-spurious-ignore-warnings) + (defgeneric no-spurious-ignore-warnings (req &key key)) + (handler-bind ((warning (lambda (x) (error "~A" x)))) + (eval + '(defmethod no-spurious-ignore-warnings ((req number) &key key) + (declare (ignore key)) + (check-type req integer)))) + (defgeneric should-get-an-ignore-warning (req &key key)) + (let ((warnings 0)) + (handler-bind ((warning (lambda (c) (setq warnings 1) (muffle-warning c)))) + (eval '(defmethod should-get-an-ignore-warning ((req integer) &key key) + (check-type req integer)))) + (assert (= warnings 1)))) + + + ;;;; success