X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-introspect%2Fxref-test-data.lisp;h=a839a440a214973c9a19b804f68acf2656e8d470;hb=f2db6743b1fadeea9e72cb583d857851c87efcd4;hp=a23c328493623bcdfbcfd43526125e4a1358c527;hpb=65dc8d30b1f8389faa549af10e72b9e677bec5d3;p=sbcl.git diff --git a/contrib/sb-introspect/xref-test-data.lisp b/contrib/sb-introspect/xref-test-data.lisp index a23c328..a839a44 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) @@ -161,4 +175,23 @@ (macro/1))) (inner-m)))) +;;; Inlining functions with non-trivial lambda-lists. +(declaim (inline inline/3)) +(defun inline/3 (a &optional b &key c d) + (list a b c d)) +(defun inline/3-user/1 (a) + (inline/3 a)) +(defun inline/3-user/2 (a b) + (inline/3 a b)) +(defun inline/3-user/3 (a b c) + (inline/3 a b :c c)) +(defun inline/3-user/4 (a b c d) + (inline/3 a b :d d :c c)) + +(declaim (inline inline/4)) +(defun inline/4 (a &rest more) + (cons a more)) +(defun inline/4-user () + (inline/4 :a :b :c)) + ;;; Test references to / from compiler-macros