0.9.11.11: fix SET-SYNTAX-FROM-CHAR buglet
[sbcl.git] / tests / reader.impure.lisp
index 5b35f78..8b60a5d 100644 (file)
 
 (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