1.0.9.62: Performance and stability improvement of threading on FreeBSD
[sbcl.git] / tests / eval.impure.lisp
index a3db89d..c5de28b 100644 (file)
       (tagbody (go NIL) NIL) t)
     (assert (tagbody-nil-is-valid-tag))))
 
+;;; top-level DECLARE is formally undefined, but we want it to raise
+;;; an error rather than silently return NIL.
+(defvar *scratch*)
+(with-test (:name :toplevel-declare)
+  (assert (raises-error? (eval '(declare (type pathname *scratch*))))))
+
 ;;; success