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.
This commit is contained in:
parent
713bac483b
commit
a126c3684f
3 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
;;; -*- lexical-binding: t -*-
|
||||
(defvar xxx-test)
|
||||
(defun foo ()
|
||||
(setq xxx-test bar))
|
Loading…
Add table
Add a link
Reference in a new issue