X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.pure.lisp;h=841bf9a757877cacaded84c39ea2c0094c161310;hb=a0a413499415738d23cc40baa44e9c404af54a94;hp=74c91dbc636398b0b857a5c925017ef75b292cfa;hpb=6f095a43607506faaceedb8b22633a5770bd7f7a;p=sbcl.git diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp index 74c91db..841bf9a 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))))))) @@ -381,3 +391,14 @@ (assert (typep (eval `(the arithmetic-error ',(make-condition 'arithmetic-error))) 'arithmetic-error)) + +(assert (not (nth-value + 2 (compile nil '(lambda () + (make-array nil :initial-element 11)))))) + +(assert (raises-error? (funcall (eval #'open) "assertoid.lisp" + :external-format '#:nonsense))) +(assert (raises-error? (funcall (eval #'load) "assertoid.lisp" + :external-format '#:nonsense))) + +(assert (= (the (values integer symbol) (values 1 'foo 13)) 1))