3 (with-test (:name
(make-array :bad-initial-contents
))
7 `(lambda () (make-array '(1) :initial-contents
'foo
))
10 (with-test (:name
(make-string-output-stream :bad-element-type
))
15 (make-string-output-stream :element-type
'((x))))
18 (with-test (:name
(coerce :bad-type-specifier
))
22 `(lambda () (coerce (list 2) 1))
25 (with-test (:name
:zombie-entry-point-reference
)
29 `(lambda () (labels ((%f
())) (%f
#'%f
)))
31 (with-test (:name
:ir1-optimize-combination-dead-node
)
38 (multiple-value-call #'%f2
(values)))))
41 (with-test (:name
(:bogus-block
&key
))
44 (checked-compile `(lambda (&key
(x (block 1 10))) x
)
47 (with-test (:name
:type-error-reporting
)
50 (checked-compile `(lambda ()
53 (cdr (1- (block b5
(if nil v3
0)))))))
56 (with-test (:name
:dx-on-deleted-nodes
)
59 (checked-compile `(lambda ()
60 (restart-bind ((1 3))))
63 (with-test (:name
:transform-call-dfo-consistency
)
68 (flet ((%f
(&optional x
) x
))
70 ;; Two of the %f calls are erroneous, with an extra argument
71 (flet ((%f6
(&key
(k (%f
(%f -
1 (%f -
2 -
3))))) 0))
75 (with-test (:name
:&aux-check-variable-names
)
79 `(lambda (&aux
(nil 10))
83 (with-test (:name
:mv-call-too-many-values
)
89 (apply #'%f1 a
2 (list 0))))
92 (with-test (:name
:mv-call-too-many-values
)
97 (make-array (list 'x
)))
100 (with-test (:name
(map :values-type
))
105 (map '* #'+ #(1) #(2)))
106 :allow-warnings t
))))
109 (with-test (:name
:bad-type-specifier
)
114 (make-array 10 :element-type
'((x))))
115 :allow-warnings t
))))
117 (with-test (:name
(make-array :bad-dimensions
))
129 :allow-warnings t
))))
131 (with-test (:name
(make-array :bad-dimensions
.2))
136 (make-array '(0 .
2)))
137 :allow-warnings t
))))
139 (with-test (:name
(make-array :bad-dimensions
.3))
145 :element-type
'fixnum
147 :allow-warnings t
))))
149 (with-test (:name
(make-array :initial-contents
:bad-macro
))
154 (make-array '(10) :initial-contents
(do)))
157 (with-test (:name
(make-array :dimensions
:bad-macro
))
165 (with-test (:name
:&rest-ref-bad-n
)
169 `(lambda (&rest a
) (lambda () (nth nil a
)))
170 :allow-warnings t
))))
172 (with-test (:name
:bad-type-specifier-handling
)
173 (multiple-value-bind (fun failure warnings
)
175 `(lambda (v) (typep v
'(unsigned-byte 8 x
(error ~s v
))))
177 (declare (ignore fun
))
179 (mapcar #'princ-to-string warnings
)))
181 (with-test (:name
:ldb-transform-macroexpand
)
185 `(lambda () (ldb (do) 0))
188 (with-test (:name
:bad-values-ftype
)
192 `(lambda () (declare (values 0)))
193 :allow-warnings t
))))
195 (with-test (:name
:bad-progv
)
199 `(lambda (x) (progv x
1))
204 `(lambda (x) (progv 1 x
))
205 :allow-warnings t
))))
207 (with-test (:name
:coerce-to-nil
)
211 '(lambda () (coerce (list t
) nil
))
212 :allow-warnings t
))))
214 (with-test (:name
:unknown-vector-type-conflict
)
218 '(lambda () (the (vector nonsense-type
) nil
))
220 :allow-style-warnings t
))))
222 (with-test (:name
:subseq-unknown-vector-type
)
226 '(lambda () (subseq (the (vector nonsense-type
) :x
) 0 1))
228 :allow-style-warnings t
))))
229 (with-test (:name
:derive-node-type-unknown-type
)
234 (let ((k (make-array 8 :element-type
'(unsigned-byte 8))))
235 (setf (aref k
0) (the unknown-type
(the integer x
)))
236 (setf k
(subseq "y" 0))))
238 :allow-style-warnings t
))))
240 (with-test (:name
:highly-nested-type-error
)
247 ',@ (loop repeat
10000
248 for cons
= (list 1) then
(list cons
)
249 finally
(return cons
)))
252 :allow-warnings t
))))