X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fhash.impure.lisp;h=8b3636c4843618bb189128e6d5431a972dbd77f3;hb=d2241edb01a6dad8a7bc1107d28d0873f5f8d83e;hp=5a461ab24cfb52a402dae91eedb4cc4f3ef6525e;hpb=3f82b95d9a0e29d8c6b218ce16447e2bc2e93351;p=sbcl.git diff --git a/tests/hash.impure.lisp b/tests/hash.impure.lisp index 5a461ab..8b3636c 100644 --- a/tests/hash.impure.lisp +++ b/tests/hash.impure.lisp @@ -223,5 +223,17 @@ (assert (eql (gethash key read-ht) (gethash key original-ht)))))) +;;; NIL is both SYMBOL and LIST +(dolist (fun '(sxhash sb-impl::psxhash)) + (assert (= (funcall fun nil) + (funcall (compile nil `(lambda (x) + (declare (symbol x)) + (,fun x))) + nil) + (funcall (compile nil `(lambda (x) + (declare (list x)) + (,fun x))) + nil)))) + ;;; success (quit :unix-status 104)