X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=ff91c66b0683b75af1a40c83d5c254db52a48bdc;hb=3357d40adfad43ce33a84cdf888977299241f8c8;hp=69fcd3cf9d13ccde4f026cedfee87772a94bca24;hpb=71766d9db05e93567cb7e829abfc675c3cb895c9;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index 69fcd3c..ff91c66 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -2201,3 +2201,17 @@ y) (integer-length x))))) warned-p)) + +;; Dead / in safe code +(with-test (:name :safe-dead-/) + (assert (eq :error + (handler-case + (funcall (compile nil + '(lambda (x y) + (declare (optimize (safety 3))) + (/ x y) + (+ x y))) + 1 + 0) + (division-by-zero () + :error)))))