0.8.0.4:
[sbcl.git] / tests / compiler.impure.lisp
index 71cce35..4f44164 100644 (file)
   (assert (eq l nil))
   (assert (eq (sswo-a s) :v)))
 
+(defun bug249 (x)
+  (flet ((bar (y)
+           (declare (fixnum y))
+           (incf x)))
+    (list (bar x) (bar x) (bar x))))
+
+(assert (raises-error? (bug249 1.0) type-error))
 \f
 ;;;; tests not in the problem domain, but of the consistency of the
 ;;;; compiler machinery itself