X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.impure.lisp;h=c31a16fe0087332d89e2a0f513f92dd0a0917e05;hb=61e6ba93d83266662a1e17431fab02a981ec6bc8;hp=a508073319033e8e7a303e6ce5f7f3315014d8be;hpb=2e5d4bd590d0603103f7677bcdf7c540469492b5;p=sbcl.git diff --git a/tests/compiler.impure.lisp b/tests/compiler.impure.lisp index a508073..c31a16f 100644 --- a/tests/compiler.impure.lisp +++ b/tests/compiler.impure.lisp @@ -935,6 +935,13 @@ (declaim (cons *special-cons*)) (assert (raises-error? (set '*special-cons* "nope") type-error)) (assert (raises-error? (progv '(*special-cons*) '("no hope") (car *special-cons*)) type-error)) + +;;; No bogus warnings for calls to functions with complex lambda-lists. +(defun complex-function-signature (&optional x &rest y &key z1 z2) + (cons x y)) +(with-test (:name :complex-call-doesnt-warn) + (handler-bind ((warning #'error)) + (compile nil '(lambda (x) (complex-function-signature x :z1 1 :z2 2))))) ;;;; tests not in the problem domain, but of the consistency of the ;;;; compiler machinery itself