X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdefstruct.impure.lisp;h=f9b4145a1c18bc0850791fd5e8223bdd4f29b1b8;hb=171fde84561e232b8af8c05b82dfe8a8f9e08340;hp=5e5ed6613674e3620459ce0d3764352b7ce98c81;hpb=40660c4081a57a91e3cc3648a5aad3d3a95db938;p=sbcl.git diff --git a/tests/defstruct.impure.lisp b/tests/defstruct.impure.lisp index 5e5ed66..f9b4145 100644 --- a/tests/defstruct.impure.lisp +++ b/tests/defstruct.impure.lisp @@ -1121,3 +1121,9 @@ redefinition." (with-test (:name (:struct-predicate :obsolete-instance)) (defclass class-to-be-redefined () ((a :initarg :a :initform 1))) (function-trampoline #'structure-with-predicate-p)) + +(with-test (:name (:defstruct :not-toplevel-silent)) + (let ((sb-ext:*evaluator-mode* :compile)) + (handler-bind ((warning #'error)) + (eval `(let () + (defstruct destruct-no-warning-not-at-toplevel bar))))))