X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure-cload.lisp;h=a29eb992d05f38cf1d8a975ceaa538f1bc0a6beb;hb=1b650be8b800cf96e2c268ae317fb26d0bf36827;hp=e1cba004ef00c442cfbda05431ff29c0375e9c85;hpb=c58795f37078f5900aff5dc4a3712fbadd2d432e;p=sbcl.git diff --git a/tests/compiler.pure-cload.lisp b/tests/compiler.pure-cload.lisp index e1cba00..a29eb99 100644 --- a/tests/compiler.pure-cload.lisp +++ b/tests/compiler.pure-cload.lisp @@ -60,6 +60,15 @@ a b) '(1 2 :a 1 2)))) +;;; bug in LOOP, reported by ??? on c.l.l +(flet ((foo (l) + (loop for x in l + when (symbolp x) return x + while (numberp x) + collect (list x)))) + (assert (equal (foo '(1 2 #\a 3)) '((1) (2)))) + (assert (equal (foo '(1 2 x 3)) 'x))) + ;;; bug 282 ;;; ;;; Verify type checking policy in full calls: the callee is supposed