X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.impure.lisp;h=2d952613e44096fe1539f8ccab7dab7971c74e95;hb=90c2b0563695904419451b6172efcf9c7008ad8b;hp=6b01a474db4c1e3425f6beb6e8c16c8cad50fda8;hpb=9ca04e5fe7bc37286c120bc84cfd4abf05e51327;p=sbcl.git diff --git a/tests/compiler.impure.lisp b/tests/compiler.impure.lisp index 6b01a47..2d95261 100644 --- a/tests/compiler.impure.lisp +++ b/tests/compiler.impure.lisp @@ -1416,4 +1416,19 @@ (program-error () :ok)))) +;;; ignore &environment +(handler-bind ((style-warning #'error)) + (compile nil '(lambda () + (defmacro macro-ignore-env (&environment env) + (declare (ignore env)) + :foo))) + (compile nil '(lambda () + (defmacro macro-no-env () + :foo)))) + +(dolist (*evaluator-mode* '(:interpret :compile)) + (disassemble (eval '(defun disassemble-source-form-bug (x y z) + (declare (optimize debug)) + (list x y z))))) + ;;; success