diff options
author | Andrea Corallo <akrl@sdf.org> | 2021-01-08 21:40:45 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2021-01-08 21:40:45 +0100 |
commit | 400f620f24b90540f71673a998c41327237330be (patch) | |
tree | 2e94333ffc6ac99987f74833bafe3191eb83c4ed /test/lisp/emacs-lisp | |
parent | 213b5d73159cafbdd52b9c0fb0479544cca98a77 (diff) | |
parent | a31bfd594523dc06941ceb89cdbeabcd4a5d19f7 (diff) | |
download | emacs-400f620f24b90540f71673a998c41327237330be.tar.gz emacs-400f620f24b90540f71673a998c41327237330be.tar.bz2 emacs-400f620f24b90540f71673a998c41327237330be.zip |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-bound.el | 7 | ||||
-rw-r--r-- | test/lisp/emacs-lisp/bytecomp-tests.el | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-bound.el b/test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-bound.el new file mode 100644 index 00000000000..e65a541e6e3 --- /dev/null +++ b/test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-bound.el @@ -0,0 +1,7 @@ +;;; -*- lexical-binding: t -*- + +(make-obsolete-variable 'bytecomp--tests-obsolete-var-2 nil "99.99") + +(defun foo () + (let ((bytecomp--tests-obsolete-var-2 2)) + bytecomp--tests-obsolete-var-2)) diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 5e5f99dbdab..a07af188fac 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el @@ -625,6 +625,9 @@ Subtests signal errors if something goes wrong." (bytecomp--define-warning-file-test "warn-obsolete-variable.el" "bytecomp--tests-obs.*obsolete.*99.99") +(bytecomp--define-warning-file-test "warn-obsolete-variable-bound.el" + "bytecomp--tests-obs.*obsolete.*99.99" t) + (bytecomp--define-warning-file-test "warn-redefine-defun-as-macro.el" "as both function and macro") |