projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.6.37: thread safety test for the CLOS cache
[sbcl.git]
/
tests
/
eval.impure.lisp
diff --git
a/tests/eval.impure.lisp
b/tests/eval.impure.lisp
index
a3db89d
..
c5de28b
100644
(file)
--- a/
tests/eval.impure.lisp
+++ b/
tests/eval.impure.lisp
@@
-220,4
+220,10
@@
(tagbody (go NIL) NIL) t)
(assert (tagbody-nil-is-valid-tag))))
(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
;;; success