diff options
| author | Andrea Corallo | 2023-04-05 18:17:58 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2023-04-05 19:12:42 +0200 |
| commit | fa669c4b17c04eff852eb23a6179ccb8fab864db (patch) | |
| tree | 54fb34cebd282f4254c4f8575211bd1353234e2e /test/src/comp-resources | |
| parent | a42f4a775bab61581d6b8dbd4fe2eeab55a6ea31 (diff) | |
| download | emacs-fa669c4b17c04eff852eb23a6179ccb8fab864db.tar.gz emacs-fa669c4b17c04eff852eb23a6179ccb8fab864db.zip | |
Comp: Fix limplification pass (bug#62537)
* test/src/comp-resources/comp-test-funcs.el (comp-test-62537-1-f)
(comp-test-62537-2-f): New functions.
* lisp/emacs-lisp/comp.el (comp-jump-table-optimizable): Make it
stricter add a comment.
Diffstat (limited to 'test/src/comp-resources')
| -rw-r--r-- | test/src/comp-resources/comp-test-funcs.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/src/comp-resources/comp-test-funcs.el b/test/src/comp-resources/comp-test-funcs.el index fff881dd595..73da7182a54 100644 --- a/test/src/comp-resources/comp-test-funcs.el +++ b/test/src/comp-resources/comp-test-funcs.el | |||
| @@ -518,6 +518,19 @@ | |||
| 518 | (defun comp-test-48029-nonascii-žžž-f (arg) | 518 | (defun comp-test-48029-nonascii-žžž-f (arg) |
| 519 | (when arg t)) | 519 | (when arg t)) |
| 520 | 520 | ||
| 521 | (defun comp-test-62537-1-f ()) | ||
| 522 | |||
| 523 | (defun comp-test-62537-2-f () | ||
| 524 | (when (let ((val (comp-test-62537-1-f))) | ||
| 525 | (cond | ||
| 526 | ((eq val 'x) | ||
| 527 | t) | ||
| 528 | ((eq val 'y) | ||
| 529 | 'y))) | ||
| 530 | (comp-test-62537-1-f)) | ||
| 531 | t) | ||
| 532 | |||
| 533 | |||
| 521 | 534 | ||
| 522 | ;;;;;;;;;;;;;;;;;;;; | 535 | ;;;;;;;;;;;;;;;;;;;; |
| 523 | ;; Tromey's tests ;; | 536 | ;; Tromey's tests ;; |