X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Freader.impure.lisp;fp=tests%2Freader.impure.lisp;h=8b60a5ded2ebd3f5e1598e90aab952f3a33c4c4c;hb=20c0ab0df7e895d55ef79cfe815e3d58870703a3;hp=5b35f78e0a36b0308568acfddaa0db93d3997bf6;hpb=9f809e2e8abb84000f35c22a86def1d8085ed791;p=sbcl.git diff --git a/tests/reader.impure.lisp b/tests/reader.impure.lisp index 5b35f78..8b60a5d 100644 --- a/tests/reader.impure.lisp +++ b/tests/reader.impure.lisp @@ -102,4 +102,11 @@ (assert (eq 'a (read (make-instance 'my-in-stream :last-char nil)))) +;;; NIL as the last argument to SET-SYNTAX-FROM-CHAR in compiled code, +;;; reported by Levente Mészáros +(let ((fun (compile nil '(lambda () + (set-syntax-from-char #\{ #\( *readtable* nil))))) + (funcall fun) + (assert (equal '(:ok) (read-from-string "{:ok)")))) + ;;; success