1.0.48.34: MAKE-ALIEN-STRING
[sbcl.git] / tests / alien.impure.lisp
index d60bd10..f97e73c 100644 (file)
                                     '(alien (c-string :not-null t))))
                     :ok))))))
 
+(with-test (:name :make-alien-string)
+  (let ((alien (sb-alien::make-alien-string "This comes from lisp!")))
+    (gc :full t)
+    (assert (equal "This comes from lisp!" (cast alien c-string)))
+    (free-alien alien)))
+
 ;;; success