summaryrefslogtreecommitdiff
path: root/test-suite/tests/goops.test
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/goops.test')
-rw-r--r--test-suite/tests/goops.test12
1 files changed, 11 insertions, 1 deletions
diff --git a/test-suite/tests/goops.test b/test-suite/tests/goops.test
index 087b6a90a..730aabb31 100644
--- a/test-suite/tests/goops.test
+++ b/test-suite/tests/goops.test
@@ -149,7 +149,17 @@
;; for which `struct-vtable-name' is #f.
(is-a? (class-of (make-vtable
(string-append standard-vtable-fields "prprpr")))
- <class>)))
+ <class>))
+
+ ;; Two cases: one for structs created before goops, one after.
+ (pass-if "early vtable class cached"
+ (eq? (class-of (current-module))
+ (class-of (current-module))))
+ (pass-if "late vtable class cached"
+ (let ((vtable (make-vtable
+ (string-append standard-vtable-fields "prprpr"))))
+ (eq? (class-of vtable)
+ (class-of vtable)))))
(with-test-prefix "defining classes"