* test/src/comp-tests.el (comp-tests-lambda-return): Add a test
verifying that the returned lambda is actually native compiled.
(should (string= (comp-tests-buff0-f) "foo")))
(ert-deftest comp-tests-lambda-return ()
- (should (= (funcall (comp-tests-lambda-return-f) 3) 4)))
+ (let ((f (comp-tests-lambda-return-f)))
+ (should (subr-native-elisp-p f))
+ (should (= (funcall f 3) 4))))
(ert-deftest comp-tests-recursive ()
(should (= (comp-tests-fib-f 10) 55)))