X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclos.impure-cload.lisp;fp=tests%2Fclos.impure-cload.lisp;h=67032c54047bb4a3d96c75945023a912ccb7cad5;hb=add57c72c932fbf70c8ba8297154936c908b410e;hp=d866200d90383253154a883ec2b6982d2b1d206b;hpb=e6548115817f37831f7fa966d9b723dc3f12b2a0;p=sbcl.git diff --git a/tests/clos.impure-cload.lisp b/tests/clos.impure-cload.lisp index d866200..67032c5 100644 --- a/tests/clos.impure-cload.lisp +++ b/tests/clos.impure-cload.lisp @@ -94,6 +94,16 @@ (assert (= (slot-value (make-instance 'definitargs-class) 'a) 1)) (assert (= (slot-value (make-instance 'definitargs-class :a 0) 'a) 0)) (assert (= *definitargs-counter* 2)) + +;;; inherited local -> shared slot initforms +;; (adapted from Paul F. Dietz's test suite DEFCLASS-0211.1) +(defclass shared-to-local-initform-super () + ((redefined :allocation :instance :initform 'orig-initform))) +(defclass shared-to-local-initform-sub (shared-to-local-initform-super) + ((redefined :allocation :class))) +(assert (slot-boundp (make-instance 'shared-to-local-initform-sub) 'redefined)) +(assert (eq 'orig-initform + (slot-value (make-instance 'shared-to-local-initform-sub) 'redefined))) ;;; success (sb-ext:quit :unix-status 104) \ No newline at end of file