X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.impure.lisp;h=8f9b132da7cebbc5a2827fc55f5780e2c96c7a16;hb=7c9af3f048bbbf43678dd8edb327101861e2eea0;hp=70b7bc795ca297ed87bd4ca237ff8badcccba385;hpb=a28478f4f22bf6753eb18c44d5205726f87a0ead;p=sbcl.git diff --git a/tests/compiler.impure.lisp b/tests/compiler.impure.lisp index 70b7bc7..8f9b132 100644 --- a/tests/compiler.impure.lisp +++ b/tests/compiler.impure.lisp @@ -1183,6 +1183,16 @@ (apply #'sb-sequence:make-sequence-like sequence length keys)) (with-test (:name :bug-458354) (assert (equalp #((a b) (a b)) (bug-458354 #(1 2) 2 :initial-element '(a b))))) + +(with-test (:name :bug-542807) + (handler-bind ((style-warning #'error)) + (eval '(defstruct bug-542807 slot))) + (let (conds) + (handler-bind ((style-warning (lambda (c) + (push c conds)))) + (eval '(defstruct bug-542807 slot))) + (assert (= 1 (length conds))) + (assert (typep (car conds) 'sb-kernel::redefinition-with-defun)))) ;;;; tests not in the problem domain, but of the consistency of the ;;;; compiler machinery itself