diff options
| author | Andrea Corallo | 2020-03-29 10:57:36 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-03-29 12:30:33 +0100 |
| commit | c69c185109c90ecc486ab707ed32d7bb7aa467d5 (patch) | |
| tree | 8bc1b2e205212ff1d9bd4f6fba04f60388572661 /test | |
| parent | 89cbff32e41771a64ba62e449ec797d55f86f15c (diff) | |
| download | emacs-c69c185109c90ecc486ab707ed32d7bb7aa467d5.tar.gz emacs-c69c185109c90ecc486ab707ed32d7bb7aa467d5.zip | |
Add comp-test-40187 checking function shadowing.
Diffstat (limited to 'test')
| -rw-r--r-- | test/src/comp-test-funcs.el | 8 | ||||
| -rw-r--r-- | test/src/comp-tests.el | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/src/comp-test-funcs.el b/test/src/comp-test-funcs.el index 67b85753b8a..9fcc132b518 100644 --- a/test/src/comp-test-funcs.el +++ b/test/src/comp-test-funcs.el | |||
| @@ -272,6 +272,14 @@ | |||
| 272 | (defun comp-test-interactive-form2-f () | 272 | (defun comp-test-interactive-form2-f () |
| 273 | (interactive)) | 273 | (interactive)) |
| 274 | 274 | ||
| 275 | (defun comp-test-40187-2-f () | ||
| 276 | 'foo) | ||
| 277 | |||
| 278 | (defalias 'comp-test-40187-1-f (symbol-function 'comp-test-40187-2-f)) | ||
| 279 | |||
| 280 | (defun comp-test-40187-2-f () | ||
| 281 | 'bar) | ||
| 282 | |||
| 275 | 283 | ||
| 276 | ;;;;;;;;;;;;;;;;;;;; | 284 | ;;;;;;;;;;;;;;;;;;;; |
| 277 | ;; Tromey's tests ;; | 285 | ;; Tromey's tests ;; |
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index c4f46b63dda..4768e1a1ace 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -339,6 +339,12 @@ Check that the resulting binaries do not differ." | |||
| 339 | (should (equal (interactive-form #'comp-tests-free-fun-f) | 339 | (should (equal (interactive-form #'comp-tests-free-fun-f) |
| 340 | '(interactive)))) | 340 | '(interactive)))) |
| 341 | 341 | ||
| 342 | (ert-deftest comp-test-40187 () | ||
| 343 | "Check function name shadowing. | ||
| 344 | https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html." | ||
| 345 | (should (eq (comp-test-40187-1-f) 'foo)) | ||
| 346 | (should (eq (comp-test-40187-2-f) 'bar))) | ||
| 347 | |||
| 342 | 348 | ||
| 343 | ;;;;;;;;;;;;;;;;;;;; | 349 | ;;;;;;;;;;;;;;;;;;;; |
| 344 | ;; Tromey's tests ;; | 350 | ;; Tromey's tests ;; |