1.0.20.23: get rid of IGNORE-ERRORS in SB-INTROSPECT
[sbcl/tcr.git] / tests / type.after-xc.lisp
blobfacbda34a3122c3a698959c0759b6d10b48f35d6
1 ;;;; tests of the type system, intended to be executed in the
2 ;;;; cross-compiler after cross-compilation
4 ;;;; This software is part of the SBCL system. See the README file for
5 ;;;; more information.
6 ;;;;
7 ;;;; While most of SBCL is derived from the CMU CL system, the test
8 ;;;; files (like this one) were written from scratch after the fork
9 ;;;; from CMU CL.
10 ;;;;
11 ;;;; This software is in the public domain and is provided with
12 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
13 ;;;; more information.
15 (in-package "SB!KERNEL")
17 (/show "beginning tests/type.after-xc.lisp")
19 ;;; various dead bugs
20 (assert (eql *empty-type*
21 (type-intersection *empty-type*
22 (specifier-type 'keyword))))
23 (assert (eql *empty-type*
24 (type-intersection (specifier-type 'keyword)
25 *empty-type*)))
26 (assert (member-type-p (specifier-type '(or float-format null))))
28 (let ((fd-stream (specifier-type 'fd-stream)))
29 (assert (type= fd-stream (type-intersection (specifier-type 'instance)
30 fd-stream))))
32 (/show "done with tests/type.after-xc.lisp")