tests: add test for artificial fpe

This commit is contained in:
Daniel Kochmanski 2017-08-10 19:28:33 +02:00
parent e0fd6ab22c
commit beefd56f56

View file

@ -1232,3 +1232,14 @@
(program-error () t)
(error () nil)
(:no-error (v) (declare (ignore v)) nil))))
;;; Date 2017-08-10
;;; Description
;;;
;;; On some platforms (without feenableexcept) compiling code with
;;; constants being infinity cause fpe-exception.
(test cmp.0056.artificial-fpe
(finishes
(funcall (compile nil
'(lambda ()
(eql 10d0 ext:double-float-positive-infinity))))))