X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-cltl2%2Ftests.lisp;h=ec5e8c96df99cc2e9c946c1ae27f68d5863869c0;hb=226f48b0835db224f61d07879307a809981e812d;hp=07882601b1534a5759932814e7d10a6a2d463b50;hpb=30b24d582dd8620b91c798e38a8aa9a6b999b4be;p=sbcl.git diff --git a/contrib/sb-cltl2/tests.lisp b/contrib/sb-cltl2/tests.lisp index 0788260..ec5e8c9 100644 --- a/contrib/sb-cltl2/tests.lisp +++ b/contrib/sb-cltl2/tests.lisp @@ -6,7 +6,7 @@ ;;;; more information. (defpackage :sb-cltl2-tests - (:use :sb-cltl2 :cl :sb-rt)) + (:use :sb-cltl2 :cl :sb-rt :sb-ext)) (in-package :sb-cltl2-tests) @@ -209,6 +209,16 @@ (var-info #:undefined) (nil nil nil)) +(declaim (global this-is-global)) +(deftest global-variable + (var-info this-is-global) + (:global nil nil)) + +(defglobal this-is-global-too 42) +(deftest global-variable.2 + (var-info this-is-global-too) + (:global nil ((always-bound . t)))) + ;;;; FUNCTION-INFORMATION (defmacro fun-info (var &environment env) @@ -269,4 +279,3 @@ (fun-info identity)) (:function nil ((inline . inline) (ftype function (t) (values t &optional))))) -