X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure-cload.lisp;h=3f913cf274e01f881e996cf1fb2782df02e4a91c;hb=920649d1915aa94b4af894b7284c3a52b11cdf0f;hp=279b85066e83daafa28480fc919485b1037055a1;hpb=568b75331113ecd0601449f337557cd1c1776e8d;p=sbcl.git diff --git a/tests/compiler.pure-cload.lisp b/tests/compiler.pure-cload.lisp index 279b850..3f913cf 100644 --- a/tests/compiler.pure-cload.lisp +++ b/tests/compiler.pure-cload.lisp @@ -36,7 +36,26 @@ ;;; of the sbcl-0.6.11.13 byte compiler bug. (print (setq *print-level* *print-level*)) +;;; PROGV with different numbers of variables and values +(let ((a 1)) + (declare (special a)) + (assert (equal (list a (progv '(a b) '(:a :b :c) + (assert (eq (symbol-value 'nil) nil)) + (list (symbol-value 'a) (symbol-value 'b))) + a) + '(1 (:a :b) 1))) + (assert (equal (list a (progv '(a b) '(:a :b) + (assert (eq (symbol-value 'nil) nil)) + (list (symbol-value 'a) (symbol-value 'b))) + a) + '(1 (:a :b) 1))) + (assert (not (boundp 'b)))) -;;; sbcl-0.6.11.25 or so had DEF!STRUCT/MAKE-LOAD-FORM/HOST screwed up -;;; so that the compiler couldn't dump pathnames. -(format t "Now the compiler can dump pathnames again: ~S ~S~%" #p"" #p"/x/y/z") +(let ((a 1) (b 2)) + (declare (special a b)) + (assert (equal (list a b (progv '(a b) '(:a) + (assert (eq (symbol-value 'nil) nil)) + (assert (not (boundp 'b))) + (symbol-value 'a)) + a b) + '(1 2 :a 1 2))))