0.9.10.17: fix bug #400, aka more correct CONSTANTP
[sbcl.git] / tests / compiler.pure.lisp
index 282cdb0..e0b1f61 100644 (file)
                 (space 2) (safety 0) (compilation-speed 0)))
       (unwind-protect 0
         (* (/ (multiple-value-prog1 -29457482 -5602513511) 1))))))))
+
+;; aggressive constant folding (bug #400)
+(assert
+ (eq t (funcall (compile nil '(lambda () (or t (the integer (/ 1 0))))))))