X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fmop.impure.lisp;h=c362778563bda5797d3376f738b2f020ed42f5aa;hb=371577a214ce2659c271279ad48e4c42e1c0c93e;hp=f4c181d83048af5d5dc2f90a43c9748935b958e8;hpb=903f4432362a1e7764dfed46d35894625cc085d8;p=sbcl.git diff --git a/tests/mop.impure.lisp b/tests/mop.impure.lisp index f4c181d..c362778 100644 --- a/tests/mop.impure.lisp +++ b/tests/mop.impure.lisp @@ -519,5 +519,12 @@ :metaclass 'funcallable-standard-class) (assert (eq (class-of (find-class 'better-be-standard-class)) (find-class 'standard-class))) + +;;; CLASS-SLOTS should signal an error for classes that are not yet +;;; finalized. Reported by Levente Meszaros on sbcl-devel. +(defclass has-slots-but-isnt-finalized () (a b c)) +(let ((class (find-class 'has-slots-but-isnt-finalized))) + (assert (not (sb-mop:class-finalized-p class))) + (assert (raises-error? (sb-mop:class-slots class) sb-kernel::reference-condition))) ;;;; success