X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclos.impure-cload.lisp;h=2353a747667c50726fa7f4aa17656360eddeff25;hb=2fb5b174f6acb88a85c86aa4cd753ddefaccc987;hp=9c65d5838940955254e7597fbe449ce592674cfe;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/tests/clos.impure-cload.lisp b/tests/clos.impure-cload.lisp index 9c65d58..2353a74 100644 --- a/tests/clos.impure-cload.lisp +++ b/tests/clos.impure-cload.lisp @@ -165,5 +165,15 @@ (assert (eql (slot-value (make-thing 1) 'slot) 1)) (assert (eql (slot-value (make-other-thing 'slot 2) 'slot) 2)) -;;; success -(sb-ext:quit :unix-status 104) +;;; test that ctors can be used with the literal class +(eval-when (:compile-toplevel) + (defclass ctor-literal-class () ()) + (defclass ctor-literal-class2 () ())) +(defun ctor-literal-class () + (make-instance #.(find-class 'ctor-literal-class))) +(defun ctor-literal-class2 () + (make-instance '#.(find-class 'ctor-literal-class2))) +(with-test (:name (:ctor :literal-class-unquoted)) + (assert (typep (ctor-literal-class) 'ctor-literal-class))) +(with-test (:name (:ctor :literal-class-quoted)) + (assert (typep (ctor-literal-class2) 'ctor-literal-class2)))