X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcompiler.pure.lisp;h=52e4c129118886f554229ab84570a0cd001a3a7b;hb=b198954cf7fd7750bfbba91b94b660f2ad891101;hp=a7118fbc946b764a181de8e2dfedf50cad4f70dc;hpb=741d910ca6f69a115905872ea84258baba5392c7;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index a7118fb..52e4c12 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -4120,3 +4120,15 @@ (declare (double-float x)) (unknown-fun 1.0d0 (+ 1.0d0 x)))))) (assert (equal '(1.0d0) (ctu:find-code-constants fun :type 'double-float))))) + +(with-test (:name :fixnum+float-coerces-fixnum + :skipped-on :x86) + (let ((fun (compile nil + `(lambda (x y) + (declare (fixnum x) + (single-float y)) + (+ x y))))) + (assert (not (ctu:find-named-callees fun))) + (assert (not (search "GENERIC" + (with-output-to-string (s) + (disassemble fun :stream s)))))))