X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Feval.impure.lisp;h=f70216c321a97350844e022e035ae9c5861e181b;hb=088583ae2b22d8d861fbc354568bd24edc0333cb;hp=0baf4e9bde353b3a68363540c17ca10637ebb46d;hpb=295fdbaa30b57128da30e1e5fb0c653dd20f46d1;p=sbcl.git diff --git a/tests/eval.impure.lisp b/tests/eval.impure.lisp index 0baf4e9..f70216c 100644 --- a/tests/eval.impure.lisp +++ b/tests/eval.impure.lisp @@ -281,4 +281,16 @@ (eval `(defun empty-let-is-not-toplevel-x () :fun)) (assert (eq :fun (empty-let-is-not-toplevel-fun))))) +(with-test (:name (eval function-lambda-expression)) + (assert (equal `(sb-int:named-lambda eval-fle-1 (x) + (block eval-fle-1 + (+ x 1))) + (function-lambda-expression + (eval `(progn + (defun eval-fle-1 (x) (+ x 1)) + #'eval-fle-1))))) + (assert (equal `(lambda (x y z) (+ x 1 y z)) + (function-lambda-expression + (eval `(lambda (x y z) (+ x 1 y z))))))) + ;;; success