X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=9b5289d25de2801a78c124980052723ba17b5385;hb=389b5755b2eab960c1f4c14045a26de5dbd510c1;hp=b5df3b989988b0e8781c22013d69449b237a23d3;hpb=dc5d8cef786c974258601109f79ab18f874b1270;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index b5df3b9..9b5289d 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -2350,3 +2350,21 @@ (the ,type x))))) (compile nil (make-lambda 'list)) (compile nil (make-lambda 'vector)))))) + +;;; this caused a momentary regression when an ill-adviced fix to +;;; bug 427 made ANY-REG suitable for primitive-type T: +;;; +;;; no :MOVE-ARG VOP defined to move # (SC SB-VM::SINGLE-REG) to # (SC SB-VM::ANY-REG) +;;; [Condition of type SIMPLE-ERROR] +(compile nil + '(lambda (frob) + (labels + ((%zig (frob) + (typecase frob + (double-float + (setf (sb-alien:deref (sb-alien:cast (sb-alien:sap-alien (unknown1) (* unsigned-char)) + (* double-float))) frob)) + (hash-table + (%zig (the (values (single-float (0.0) 1.0) &optional) (unknown2))) + nil)))) + (%zig))))