aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/comp-resources
diff options
context:
space:
mode:
authorAndrea Corallo2024-10-15 15:30:49 +0200
committerAndrea Corallo2024-10-15 22:13:08 +0200
commitcd739d3644be618008e5c369b4e96201a05a3d1b (patch)
treef52269c05330679eeb7d37176c7f637f9441f3cb /test/src/comp-resources
parent358b38bc17875c462c2131b9eeb85d3456c0be2b (diff)
downloademacs-cd739d3644be618008e5c369b4e96201a05a3d1b.tar.gz
emacs-cd739d3644be618008e5c369b4e96201a05a3d1b.zip
Fix comp branch-optim pass (bug#73270)
* test/src/comp-tests.el (comp-test-73270-1): Define new test. * test/src/comp-resources/comp-test-funcs.el (comp-test-73270-base) (comp-test-73270-child1, comp-test-73270-child2) (comp-test-73270-child3, comp-test-73270-child4) (comp-test-73270-1-f): Define. * lisp/emacs-lisp/comp-cstr.el (comp-cstr-type-p): Fix it for nil cstrs.
Diffstat (limited to 'test/src/comp-resources')
-rw-r--r--test/src/comp-resources/comp-test-funcs.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/src/comp-resources/comp-test-funcs.el b/test/src/comp-resources/comp-test-funcs.el
index 084fcd8c9db..87d3220f381 100644
--- a/test/src/comp-resources/comp-test-funcs.el
+++ b/test/src/comp-resources/comp-test-funcs.el
@@ -562,6 +562,23 @@
562(defun comp-test-67883-1-f () 562(defun comp-test-67883-1-f ()
563 '#1=(1 . #1#)) 563 '#1=(1 . #1#))
564 564
565(cl-defstruct comp-test-73270-base)
566(cl-defstruct
567 (comp-test-73270-child1 (:include comp-test-73270-base)))
568(cl-defstruct
569 (comp-test-73270-child2 (:include comp-test-73270-base)))
570(cl-defstruct
571 (comp-test-73270-child3 (:include comp-test-73270-base)))
572(cl-defstruct
573 (comp-test-73270-child4 (:include comp-test-73270-base)))
574
575(defun comp-test-73270-1-f (x)
576 (cl-typecase x
577 (comp-test-73270-child1 'child1)
578 (comp-test-73270-child2 'child2)
579 (comp-test-73270-child3 'child3)
580 (comp-test-73270-child4 'child4)))
581
565 582
566;;;;;;;;;;;;;;;;;;;; 583;;;;;;;;;;;;;;;;;;;;
567;; Tromey's tests ;; 584;; Tromey's tests ;;