1.0.46.9: detect invalid use of :PREDICATE with DEFSTRUCT :TYPE
[sbcl.git] / tests / print.impure.lisp
index c773e76..9b4f13d 100644 (file)
                             (write-to-string *print-length* :length nil))))))
     (assert (equal "42" (funcall test)))))
 
+(with-test (:name (:format :compile-literal-dest-string))
+  (assert (eq :warned
+              (handler-case
+                  (compile nil
+                           `(lambda (x) (format "~A" x)))
+                ((and warning (not style-warning)) ()
+                  :warned)))))
+
 ;;; success