X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fsmoke.impure.lisp;h=c07bc1b9f6093e10ecb5e370af2b252be378fc8a;hb=76874d05d623e0001cfcf23d2c74f78295ba6cee;hp=d5e86b3b8710f2dbed09aae45a6e40de89ff8954;hpb=d49c71bf00d858efc5796900ca4954fb76ce6402;p=sbcl.git diff --git a/tests/smoke.impure.lisp b/tests/smoke.impure.lisp index d5e86b3..c07bc1b 100644 --- a/tests/smoke.impure.lisp +++ b/tests/smoke.impure.lisp @@ -59,5 +59,17 @@ (defconstant +const+ 3)) (assert (= (oidentity +const+) 3)) +;;; MULTIPLE-VALUE-BIND and lambda list keywords +(multiple-value-bind (&rest &optional &key &allow-other-keys) + (values 1 2 3) + (assert (= &rest 1)) + (assert (= &optional 2)) + (assert (= &key 3)) + (assert (null &allow-other-keys))) + +(let ((fn (lambda (&foo &rest &bar) (cons &foo &bar)))) + (assert (equal (funcall fn 1) '(1))) + (assert (equal (funcall fn 1 2 3) '(1 2 3)))) + ;;; success (quit :unix-status 104)