X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclos.impure.lisp;h=56fb8c374a5370f9c7dcc4ce650799528535b67b;hb=83659744f9caa97aa83eb562d872b1c0127403c0;hp=ec9dffcb10006840dd63b2d5904cac567ff635d1;hpb=71b57577217f8efce2077b8840cca6612c2777f8;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