aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/comp-resources
diff options
context:
space:
mode:
authorAndrea Corallo2023-04-05 18:17:58 +0200
committerAndrea Corallo2023-04-05 19:12:42 +0200
commitfa669c4b17c04eff852eb23a6179ccb8fab864db (patch)
tree54fb34cebd282f4254c4f8575211bd1353234e2e /test/src/comp-resources
parenta42f4a775bab61581d6b8dbd4fe2eeab55a6ea31 (diff)
downloademacs-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.el13
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 ;;