Preserve superclass structure accessors in infodb
[sbcl.git] / tests / compare-and-swap.impure.lisp
index e1dc09b..b368f8c 100644 (file)
 (defstruct box
   (word 0 :type sb-vm:word))
 
+;; Have the following tests check that CAS access to the superclass
+;; works in the presence of a subclass sharing the conc-name.
+(defstruct (subbox (:include box) (:conc-name "BOX-")))
+
 (defun inc-box (box n)
   (declare (fixnum n) (box box))
   (loop repeat n