diff options
| author | Andrea Corallo | 2024-10-15 15:30:49 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2024-10-15 22:13:08 +0200 |
| commit | cd739d3644be618008e5c369b4e96201a05a3d1b (patch) | |
| tree | f52269c05330679eeb7d37176c7f637f9441f3cb /test/src/comp-resources | |
| parent | 358b38bc17875c462c2131b9eeb85d3456c0be2b (diff) | |
| download | emacs-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.el | 17 |
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 ;; |