X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Feval.impure.lisp;h=fc8ec40427701320307ff4ef93eb698329ff0fc2;hb=6d36f2d6954cb79e3c88fef33fe0c3ad63deaea8;hp=6900d74089bd8f068a11966e1f1ff1f2d1183a1a;hpb=70afa48b26b8242b39a57d55996fc0e0f41c06af;p=sbcl.git diff --git a/tests/eval.impure.lisp b/tests/eval.impure.lisp index 6900d74..fc8ec40 100644 --- a/tests/eval.impure.lisp +++ b/tests/eval.impure.lisp @@ -256,4 +256,11 @@ (let ((fun (eval lambda-form))) (assert (equal lambda-form (function-lambda-expression fun)))))) +(with-test (:name (eval :source-context-in-compiler)) + (let ((noise (with-output-to-string (*error-output*) + (let ((*evaluator-mode* :compile)) + (eval `(defun source-context-test (x) y)))))) + (with-input-from-string (s noise) + (assert (equal "; in: DEFUN SOURCE-CONTEXT-TEST" (read-line s)))))) + ;;; success