]> git.eshelyaron.com Git - emacs.git/commit
Test byte-compiler free variable warning
authorStefan Kangas <stefan@marxist.se>
Mon, 30 Nov 2020 21:42:08 +0000 (22:42 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 30 Nov 2020 21:43:37 +0000 (22:43 +0100)
commita126c3684f8854f8c0d7ab5dcf55f31bac77dcf9
tree15744360c41d7c6e711739857c3ce0abd06e1a4c
parent713bac483b4b3b7c0116ba8cd832eb9a9ecbd536
Test byte-compiler free variable warning

* test/lisp/emacs-lisp/bytecomp-tests.el (ert-x): Require.
(bytecomp--define-warning-file-test): New macro.
(bytecomp-warn/warn-free-setq\.el)
(bytecomp-warn/warn-free-variable-reference\.el): New tests.
* test/lisp/emacs-lisp/bytecomp-resources/warn-free-setq.el:
* test/lisp/emacs-lisp/bytecomp-resources/warn-free-variable-reference.el:
New files.
test/lisp/emacs-lisp/bytecomp-resources/warn-free-setq.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-resources/warn-free-variable-reference.el [new file with mode: 0644]
test/lisp/emacs-lisp/bytecomp-tests.el