1 ;;;; miscellaneous side-effectful tests of LOAD
3 ;;;; This software is part of the SBCL system. See the README file for
6 ;;;; While most of SBCL is derived from the CMU CL system, the test
7 ;;;; files (like this one) were written from scratch after the fork
10 ;;;; This software is in the public domain and is provided with
11 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
12 ;;;; more information.
14 ;;; Bug reported by Sean Ross: FASL loader set fill pointer to loaded
17 (defvar *tmp-filename* "load-test.tmp")
20 (with-open-file (s *tmp-filename*
23 :if-does-not-exist :create)
24 (print '(setq *array* #3a(((1 2) (2 1)) ((3 4) (4 3)))) s))
28 (setq tmp-fasl (compile-file *tmp-filename*))
31 (assert (arrayp *array*))
32 (assert (= (array-rank *array*) 3))
33 (assert (not (array-has-fill-pointer-p *array*)))))
34 (when tmp-fasl (delete-file tmp-fasl))
35 (delete-file *tmp-filename*))))
37 (quit :unix-status 104)