1.0.47.27: limit open coding from MEMBER, ASSOC, &co
[sbcl.git] / tests / compiler.pure.lisp
index c2223e7..f6dcabf 100644 (file)
                   (assoc
                    nil
                    '((:ordinary . ordinary-lambda-list))))))
+
+(with-test (:name :member-on-long-constant-list)
+  ;; This used to blow stack with a sufficiently long list.
+  (let ((cycle (list t)))
+    (nconc cycle cycle)
+    (compile nil `(lambda (x)
+                    (member x ',cycle)))))