X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.impure.lisp;h=1914816884c8ac7177d70fb1424104a9abcae405;hb=ebee2761543b208483fe763b1d329d5d0014b892;hp=8b19a64a46f2daa2925575da8d13a6565de1d067;hpb=8197ef56f02105dfe825b976f5bf74285a767b42;p=sbcl.git diff --git a/tests/interface.impure.lisp b/tests/interface.impure.lisp index 8b19a64..1914816 100644 --- a/tests/interface.impure.lisp +++ b/tests/interface.impure.lisp @@ -34,6 +34,19 @@ (let ((x 1)) (defun disassemble-closure (y) (if y (setq x y) x))) (disassemble 'disassemble-closure) + +#+sb-eval +(progn + ;; Nor should it fail on interpreted functions + (let ((sb-ext:*evaluator-mode* :interpret)) + (eval `(defun disassemble-eval (x) x)) + (disassemble 'disassemble-eval)) + + ;; disassemble-eval should still be an interpreted function. + ;; clhs disassemble: "(If that function is an interpreted function, + ;; it is first compiled but the result of this implicit compilation + ;; is not installed.)" + (assert (sb-eval:interpreted-function-p #'disassemble-eval))) ;;; support for DESCRIBE tests (defstruct to-be-described a b)