aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndrea Corallo2024-12-12 00:06:43 +0100
committerAndrea Corallo2025-03-23 17:33:27 +0100
commitd565a6747a2bb3c6699a95e60e5f522f80a1ca0a (patch)
treee715bd3365ef80e794f969d5404f2f378066d921 /test
parent408ad273eeadf72dea11b89ea2a44f36ea0e2295 (diff)
downloademacs-d565a6747a2bb3c6699a95e60e5f522f80a1ca0a.tar.gz
emacs-d565a6747a2bb3c6699a95e60e5f522f80a1ca0a.zip
Fix a nativecomp type propagation bug (bug#74771)
* lisp/emacs-lisp/comp.el (comp--add-cond-cstrs): Don't emit negated cstr. * test/src/comp-tests.el (comp-tests-type-spec-tests): Add a test.
Diffstat (limited to 'test')
-rw-r--r--test/src/comp-tests.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index 2991a05d771..6b608d73540 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -1512,7 +1512,12 @@ Return a list of results."
1512 (if (functionp x) 1512 (if (functionp x)
1513 (error "") 1513 (error "")
1514 x)) 1514 x))
1515 '(not function)))) 1515 '(not function))
1516 ;; 81
1517 ((defun comp-tests-ret-type-spec-f (x)
1518 (print (comp-foo-p x))
1519 (comp-foo-p x))
1520 'boolean)))
1516 1521
1517 (defun comp-tests-define-type-spec-test (number x) 1522 (defun comp-tests-define-type-spec-test (number x)
1518 `(comp-deftest ,(intern (format "ret-type-spec-%d" number)) () 1523 `(comp-deftest ,(intern (format "ret-type-spec-%d" number)) ()