X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=08fbf6a4c54a7abd940bfc24ff5e1da1d9c6bbea;hb=2b0851c405b494143009f68e2bc7e91017a809d4;hp=f2cba5fa3723b04e8ca4415713fe7ae5e811b652;hpb=4af56c115ef7ec63e06be677f9dfbf8116882e4c;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index f2cba5f..08fbf6a 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -2871,3 +2871,28 @@ (adjust-array y '(3 5)) (array-dimension y 0)))))) (assert (= 3 (funcall f (make-array '(4 4) :adjustable t)))))) + +(with-test (:name :with-timeout-code-deletion-note) + (handler-bind ((sb-ext:code-deletion-note #'error)) + (compile nil `(lambda () + (sb-ext:with-timeout 0 + (sleep 1)))))) + +(with-test (:name :full-warning-for-undefined-type-in-cl) + (assert (eq :full + (handler-case + (compile nil `(lambda (x) (the replace x))) + (style-warning () + :style) + (warning () + :full))))) + +(with-test (:name :single-warning-for-single-undefined-type) + (let ((n 0)) + (handler-bind ((warning (lambda (c) + (declare (ignore c)) + (incf n)))) + (compile nil `(lambda (x) (the #:no-type x))) + (assert (= 1 n)) + (compile nil `(lambda (x) (the 'fixnum x))) + (assert (= 2 n)))))