X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=3918eaba46489ba9de9c594785aacb39d280f682;hb=05525d3a5906d7a89fcb689c26177732493c40ce;hp=74c91dbc636398b0b857a5c925017ef75b292cfa;hpb=bd0ba0f214518e8d72ff2d44de5a1e3e4b02af2c;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index 74c91db..3918eab 100644 --- a/tests/compiler.pure.lisp +++ b/tests/compiler.pure.lisp @@ -232,7 +232,7 @@ (ignore-errors (ecase 1 (t 0) (1 2))) (assert (eql result 2)) (assert (null error))) - + ;;; FTYPE should accept any functional type specifier (compile nil '(lambda (x) (declare (ftype function f)) (f x))) @@ -342,6 +342,16 @@ ;;; Moellmann: CONVERT-MORE-CALL failed on the following call (assert (eq (eval '((lambda (&key) 'u) :allow-other-keys nil)) 'u)) +(raises-error? (multiple-value-bind (a b c) + (eval '(truncate 3 4)) + (declare (integer c)) + (list a b c)) + type-error) + +(assert (equal (multiple-value-list (the (values &rest integer) + (eval '(values 3)))) + '(3))) + ;;; Bug relating to confused representation for the wild function ;;; type: (assert (null (funcall (eval '(lambda () (multiple-value-list (values)))))))