* test/src/comp-tests.el (comp-test-speed--1): New test
* test/src/comp-test-funcs.el (comp-test-speed--1-f): New
function.
(defun comp-test-40187-2-f ()
'bar)
+(defun comp-test-speed--1-f ()
+ (declare (speed -1))
+ 3)
+
\f
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;
(should (eq (comp-test-40187-1-f) 'foo))
(should (eq (comp-test-40187-2-f) 'bar)))
+(ert-deftest comp-test-speed--1 ()
+ "Check that at speed -1 we do not native compile."
+ (should (= (comp-test-speed--1-f) 3))
+ (should-not (subr-native-elisp-p (symbol-function #'comp-test-speed--1-f))))
+
\f
;;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests. ;;