Fix make-array transforms.
[sbcl.git] / tests / clos.impure-cload.lisp
index 9c65d58..d5d8c30 100644 (file)
 (assert (eql (slot-value (make-thing 1) 'slot) 1))
 (assert (eql (slot-value (make-other-thing 'slot 2) 'slot) 2))
 \f
-;;; 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)))
+\f
+;;; test that call-next-method and eval-when doesn't cause an
+;;; undumpable method object to arise in the effective source code.
+;;; (from Sascha Wilde sbcl-devel 2007-07-15)
+(eval-when (:compile-toplevel :load-toplevel :execute)
+  (defmethod just-call-next-method (thing)
+    (call-next-method)))