0.9.16.15: stamp down on warnings due to step instrumentation
[sbcl.git] / tests / compiler.impure.lisp
index ae57aa9..8bd3d9e 100644 (file)
   (storage-condition (e)
     (error e)))
 
+;;; warnings due to step-insturmentation
+(defclass debug-test-class () ())
+(handler-case
+    (compile nil '(lambda ()
+                   (declare (optimize (debug 3)))
+                   (defmethod print-object ((x debug-test-class) s)
+                     (call-next-method))))
+  ((and (not style-warning) warning) (e)
+    (error e)))
+
 ;;; success