(sb-ext:defglobal x ...) couldn't be found.
(case type
((:variable)
(when (and (symbolp name)
- (eq (sb-int:info :variable :kind name) :special))
+ (member (sb-int:info :variable :kind name)
+ '(:global :special)))
(translate-source-location (sb-int:info :source-location type name))))
((:constant)
(when (and (symbolp name)
(make-pathname :directory (pathname-directory
'#.(or *compile-file-pathname*
*load-pathname*)))))
- (multiple-value-bind (soft strict pending)
- (funcall (intern "DO-TESTS" (find-package "SB-RT")))
+ (multiple-value-bind (soft strict #+sb-testing-contrib pending)
+ (funcall (find-symbol "DO-TESTS" "SB-RT"))
(fresh-line)
(unless strict
#+sb-testing-contrib
(matchp-name :function 'cl-user::loaded-as-source-fun 3)
t)
+(deftest find-source-stuff.
+ (matchp-name :variable 'cl-user::**global** 29)
+ t)
+
;;; Check wrt. interplay of generic functions and their methods.
(defgeneric xuuq (gf.a gf.b &rest gf.rest &key gf.k-X))
(eval-when (:compile-toplevel)
(defun compile-time-too-fun ()
:foo))
+
+(sb-ext:defglobal **global** 'value)