X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=7dcc183567ab236799eb9e0a76fdfc621714807e;hb=5cf3c4259d529e180d75d4d140f344e600d2b06b;hp=e913df366f0a0956cb13f503a445e825f40fefdc;hpb=ff5c74843b7daa12f4c2d4f2c487a63d81cb2c22;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index e913df3..7dcc183 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -2683,3 +2683,10 @@ nil) (assert (eq 'list type)) (assert derivedp))) + +(with-test (:name :base-char-typep-elimination) + (assert (eq (funcall (lambda (ch) + (declare (type base-char ch) (optimize (speed 3) (safety 0))) + (typep ch 'base-char)) + t) + t)))