2
;;;; Author: Paul Dietz
3
;;;; Created: Sat Oct 12 13:27:22 2002
4
;;;; Contains: Tests of TAGBODY
21
(tagbody (values 1 2 3 4 5))
50
;;; Macroexpansion occurs after tag determination
53
(macrolet ((%m () 'a))
66
(flet ((%f (y) (setq x y) (go a)))
73
;;; Tag names are in their own name space
117
;;; Test that integers are accepted as go tags
124
(return-from done 'good)
134
(return-from done 'good)
143
#.(1+ most-positive-fixnum)
144
(return-from done 'good)
146
(go #.(1+ most-positive-fixnum))))
150
(let* ((t1 (1+ most-positive-fixnum))
151
(t2 (1+ most-positive-fixnum))
156
(return-from done 'good)
162
;;; Check that macros are not expanded before finding tags
163
;;; Test for issue TAGBODY-TAG-EXPANSION
167
(macrolet ((foo () 'tag))
172
(return-from done :bad))))
174
(return-from done :good)))