1 ;;;; tests of the INFO compiler database, initially with particular
2 ;;;; reference to knowledge of constants, intended to be executed as
3 ;;;; soon as the cross-compiler is built.
5 ;;;; This software is part of the SBCL system. See the README file for
8 ;;;; While most of SBCL is derived from the CMU CL system, the test
9 ;;;; files (like this one) were written from scratch after the fork
12 ;;;; This software is in the public domain and is provided with
13 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
14 ;;;; more information.
16 (in-package "SB!KERNEL")
18 (/show "beginning tests/info.before-xc.lisp")
20 (assert (eq (sb!int:info :variable :kind 'sb!vm:vector-data-offset)
22 ;;; It's possible in general for a constant to have the value NIL, but
23 ;;; not for vector-data-offset, which must be a number:
24 (assert (boundp 'sb!vm:vector-data-offset))
25 (assert (integerp (symbol-value 'sb!vm:vector-data-offset)))
27 (/show "done with tests/info.before-xc.lisp")