(assert (= (slot-value x 'name) 1))
(assert (= (slot-value x 'cl-user::name) 2)))
\f
+;;; ALLOCATE-INSTANCE should work on structures, even if defined by
+;;; DEFSTRUCT (and not DEFCLASS :METACLASS STRUCTURE-CLASS).
+(defstruct allocatable-structure a)
+(assert (typep (allocate-instance (find-class 'allocatable-structure))
+ 'allocatable-structure))
+\f
;;;; success
(sb-ext:quit :unix-status 104)