X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Freader.pure.lisp;h=f0ba954b9f407492b3abe6badd6f0cf7ab926f3a;hb=a616d877dd0a9dce6cd81be9418a42b65c5b3d1e;hp=7f88b038bef886f14021b4481f36d9ab69db44e6;hpb=134fa6b3f7c5f4bb0652e74227d940a9e7a83563;p=sbcl.git diff --git a/tests/reader.pure.lisp b/tests/reader.pure.lisp index 7f88b03..f0ba954 100644 --- a/tests/reader.pure.lisp +++ b/tests/reader.pure.lisp @@ -245,3 +245,20 @@ (read-from-string "CL-USER:DOES-NOT-EXIST") (reader-error (c) (princ c)))) + +;;; The GET-MACRO-CHARACTER in SBCL <= "1.0.34.2" bogusly computed its +;;; second return value relative to *READTABLE* rather than the passed +;;; readtable. +(let* ((*readtable* (copy-readtable nil))) + (set-syntax-from-char #\" #\A) + (multiple-value-bind (reader-fn non-terminating-p) + (get-macro-character #\" (copy-readtable nil)) + (declare (ignore reader-fn)) + (assert (not non-terminating-p)))) + +(with-test (:name :bug-309093) + (assert (eq :error + (handler-case + (read-from-string "`#2A((,(1+ 0) 0) (0 0))") + (reader-error () + :error)))))