X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ffloat.pure.lisp;h=d06352cc3895e75af7d0a8b738244a4c94eafb7b;hb=40b06a4157c22c2bab0b13ba051fde2489864076;hp=3d50fdaf6657093d939bcbc9a10a56cacca09b1a;hpb=3d2165e67f9ad1443f6e7d8ad24810000b0436e8;p=sbcl.git diff --git a/tests/float.pure.lisp b/tests/float.pure.lisp index 3d50fda..d06352c 100644 --- a/tests/float.pure.lisp +++ b/tests/float.pure.lisp @@ -118,6 +118,12 @@ #c(1.0d0 2.0d0)) 'double-float)) +;;; More out of line functions (%COS, %SIN, %TAN) for constant folding, +;;; reported by Mika Pihlajamäki +(funcall (compile nil '(lambda () (cos (tan (round 0)))))) +(funcall (compile nil '(lambda () (sin (tan (round 0)))))) +(funcall (compile nil '(lambda () (tan (tan (round 0)))))) + (with-test (:name (:addition-overflow :bug-372) :fails-on '(or :ppc :darwin :mips :freebsd)) (assert (typep (nth-value