X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=577c4346e29a2f17cb8a8bc1633b984114529f7f;hb=792668aff416a047bb3df218d448d8660303d1db;hp=895a104c1e32eabbe3f1c82ab4fbf805689c03e7;hpb=3b9d0f932481fbc9cf2eabc5bb160452927682b6;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index 895a104..577c434 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -4941,3 +4941,19 @@ (assert (handler-case (compile nil `(lambda (x) (array-row-major-index x))) (warning () nil)))) + +(with-test (:name :array-rank-transform) + (compile nil `(lambda (a) (array-rank (the an-imaginary-type a))))) + +(with-test (:name (:array-rank-fold :bug-1252108)) + (let (noted) + (handler-bind ((sb-ext::code-deletion-note + (lambda (x) + (setf noted x)))) + (compile nil + `(lambda (a) + (typecase a + ((array t 2) + (when (= (array-rank a) 3) + (array-dimension a 2))))))) + (assert noted)))