X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.impure.lisp;h=c8c3d0fb5f11a2ccfc654f9d0dff3ef0b777159f;hb=079ef9dad558ca07cb8178ef428bf738112174fa;hp=ab3174471d9204b20b2c18f42fc65d90ac3eba94;hpb=6893cb1b25387d1131371649b709398fea78d6f1;p=sbcl.git diff --git a/tests/interface.impure.lisp b/tests/interface.impure.lisp index ab31744..c8c3d0f 100644 --- a/tests/interface.impure.lisp +++ b/tests/interface.impure.lisp @@ -35,7 +35,13 @@ "(class-predicate foo) documentation")) (assert (string= (documentation #'(sb-pcl::class-predicate foo) 'function) "(class-predicate foo) documentation")) + +;;; DISASSEMBLE shouldn't fail on closures or unpurified functions +(defun disassemble-fun (x) x) +(disassemble 'disassemble-fun) +(let ((x 1)) (defun disassemble-closure (y) (if y (setq x y) x))) +(disassemble 'disassemble-closure) ;;;; success (sb-ext:quit :unix-status 104)