X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=08fbf6a4c54a7abd940bfc24ff5e1da1d9c6bbea;hb=2b0851c405b494143009f68e2bc7e91017a809d4;hp=14603df72825ef94d06e8bd079ac931e579afec9;hpb=80356ce0ff12379e93a9df74dd65433c415f7aae;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index 14603df..08fbf6a 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -2877,3 +2877,22 @@ (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)))))