summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2024-03-04 10:44:19 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2024-03-04 14:13:26 +0100
commitb9e8474a4470f71c30a4b89651fd3c5f2ef92ba2 (patch)
treeadb850bdbd7170dc5522ec4b2d35bc58bc18d9be /test
parent2c2a15bd171ecbf87fdac4405c7ea5f567fcf38a (diff)
downloademacs-b9e8474a4470f71c30a4b89651fd3c5f2ef92ba2.tar.gz
Repair miscompilation of single-arg `apply` (bug#69533)
* lisp/emacs-lisp/byte-opt.el (byte-optimize-apply): Don't optimise single-argument `apply`; it's a legacy construct. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases): Add test case.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index 8ccac492141..26408e8685a 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -800,6 +800,9 @@ inner loops respectively."
;; Aristotelian identity optimization
(let ((x (bytecomp-test-identity 1)))
(list (eq x x) (eql x x) (equal x x)))
+
+ ;; Legacy single-arg `apply' call
+ (apply '(* 2 3))
)
"List of expressions for cross-testing interpreted and compiled code.")