X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=60e30b66038e3e317b0eb2530ac08a324be234e2;hb=b956ed4f9cef685d1b49be28dcd2aec1e082d994;hp=ae6a645a2c452318b540aa20f28ae621a0a679d5;hpb=3ab22aeab40acb47148ccb851f6d1b3afdcda15b;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index ae6a645..60e30b6 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -434,3 +434,14 @@ (char/= x y z))) nil #\a #\a) type-error) + +;;; Compiler lost return type of MAPCAR and friends +(dolist (fun '(mapcar mapc maplist mapl)) + (assert (nth-value 2 (compile nil + `(lambda (x) + (1+ (,fun #'print x))))))) + +(assert (nth-value 2 (compile nil + '(lambda () + (declare (notinline mapcar)) + (1+ (mapcar #'print '(1 2 3)))))))