X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-introspect%2Fxref-test-data.lisp;h=e76fbba776f71afc17b674c51eff68ba4b27fa67;hb=d351f80b1076dd54e5aee3dacab82d59c2e58060;hp=f5298391e08c29b16dded8a19755752770a09c37;hpb=cb83aa22932bf4b9bc74ac6f0fcd91db1702ad33;p=sbcl.git diff --git a/contrib/sb-introspect/xref-test-data.lisp b/contrib/sb-introspect/xref-test-data.lisp index f529839..e76fbba 100644 --- a/contrib/sb-introspect/xref-test-data.lisp +++ b/contrib/sb-introspect/xref-test-data.lisp @@ -1,3 +1,17 @@ +;;;; This software is part of the SBCL system. See the README file for +;;;; more information. +;;;; +;;;; This software is derived from the CMU CL system, which was +;;;; written at Carnegie Mellon University and released into the +;;;; public domain. The software is in the public domain and is +;;;; provided with absolutely no warranty. See the COPYING and CREDITS +;;;; files for more information. + +(defpackage :sb-introspect-test/xref + (:use "SB-INTROSPECT" "CL" "SB-RT")) + +(in-package :sb-introspect-test/xref) + (defvar *a* nil) (defconstant +z+ 'zzz) @@ -102,6 +116,13 @@ ;; Doesn't count as calling xref/3, or referring to +z+ / *a* (inline/1)))) +;; last node of block should also be taken into account +(defun xref/13 (x) + (setf *a* x)) + +(defun xref/14 () + *a*) + ;; calling a function in a macro body (defmacro macro/1 () (when nil