X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=544810257700c49eba102e98c2d0ade3e982e23e;hb=8643c93d4db277f6e1cb880a42407ff29e19f618;hp=c5997a4e738747732360562efb46b730fee2b906;hpb=d870c05118b1ac8a8df1f0b1049eacb45f69b711;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index c5997a4..5448102 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -1947,7 +1947,7 @@ (bit #*1001101001001 (min 12 (max 0 lv3)))))))))))) -;;; MISC.624: erronous AVER in x86's %LOGBITP VOPs +;;; MISC.624: erroneous AVER in x86's %LOGBITP VOPs (assert (eql 0 (funcall (compile @@ -2264,3 +2264,26 @@ do (let ((arg (random (truncate most-positive-double-float)))) (assert (eql (funcall fun arg) (funcall op 0.0d0 arg))))))) + +(with-test (:name :high-debug-known-function-inlining) + (let ((fun (compile nil + '(lambda () + (declare (optimize (debug 3)) (inline append)) + (let ((fun (lambda (body) + (append + (first body) + nil)))) + (funcall fun + '((foo (bar))))))))) + (funcall fun))) + +(with-test (:name :high-debug-known-function-transform-with-optional-arguments) + (compile nil '(lambda (x y) + (declare (optimize sb-c::preserve-single-use-debug-variables)) + (if (block nil + (some-unknown-function + (lambda () + (return (member x y)))) + t) + t + (error "~a" y)))))