Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.0.28.70: regression in ABOUT-TO-MODIFY-SYMBOL-VALUE from 1.0.28.30
* Patch and test-case by Stas Boukarev.
- Loading branch information
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
;;;; miscellaneous impure tests of SYMBOL-related stuff | ||
|
||
;;;; This software is part of the SBCL system. See the README file for | ||
;;;; more information. | ||
;;;; | ||
;;;; While most of SBCL is derived from the CMU CL system, the test | ||
;;;; files (like this one) were written from scratch after the fork | ||
;;;; from CMU CL. | ||
;;;; | ||
;;;; This software is in the public domain and is provided with | ||
;;;; absolutely no warranty. See the COPYING and CREDITS files for | ||
;;;; more information. | ||
|
||
(in-package "CL-USER") | ||
|
||
(declaim (type (simple-array fixnum (*)) *foo*)) | ||
(with-test (:name :defvar-type-error) | ||
(assert (eq :ok | ||
(handler-case | ||
(eval `(defvar *foo* (make-array 10 :element-type '(unsigned-byte 60)))) | ||
(type-error (e) | ||
(when (and (typep e 'type-error) | ||
(equal '(simple-array fixnum (*)) | ||
(type-error-expected-type e))) | ||
;; Check that it prints without an error. | ||
(let ((string (princ-to-string e))) | ||
:ok))))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters