[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp c69c185 07/10: Add comp-test-40187 checking function
From: |
Andrea Corallo |
Subject: |
feature/native-comp c69c185 07/10: Add comp-test-40187 checking function shadowing. |
Date: |
Sun, 29 Mar 2020 09:12:53 -0400 (EDT) |
branch: feature/native-comp
commit c69c185109c90ecc486ab707ed32d7bb7aa467d5
Author: Andrea Corallo <address@hidden>
Commit: Andrea Corallo <address@hidden>
Add comp-test-40187 checking function shadowing.
---
test/src/comp-test-funcs.el | 8 ++++++++
test/src/comp-tests.el | 6 ++++++
2 files changed, 14 insertions(+)
diff --git a/test/src/comp-test-funcs.el b/test/src/comp-test-funcs.el
index 67b8575..9fcc132 100644
--- a/test/src/comp-test-funcs.el
+++ b/test/src/comp-test-funcs.el
@@ -272,6 +272,14 @@
(defun comp-test-interactive-form2-f ()
(interactive))
+(defun comp-test-40187-2-f ()
+ 'foo)
+
+(defalias 'comp-test-40187-1-f (symbol-function 'comp-test-40187-2-f))
+
+(defun comp-test-40187-2-f ()
+ 'bar)
+
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index c4f46b6..4768e1a 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."
(should (equal (interactive-form #'comp-tests-free-fun-f)
'(interactive))))
+(ert-deftest comp-test-40187 ()
+ "Check function name shadowing.
+https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html."
+ (should (eq (comp-test-40187-1-f) 'foo))
+ (should (eq (comp-test-40187-2-f) 'bar)))
+
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;
- feature/native-comp updated (bb0496e -> 00ee320), Andrea Corallo, 2020/03/29
- feature/native-comp 05f89e8 02/10: src/comp.c (Fcomp__init_ctxt): Aesthetic, Andrea Corallo, 2020/03/29
- feature/native-comp 9d8ce52 03/10: * comp.c (maybe_defer_native_compilation): Compile comp dependecies., Andrea Corallo, 2020/03/29
- feature/native-comp 3c5e3ca 05/10: * test/src/comp-test-funcs.el (comp-test-big-interactive): New test, Andrea Corallo, 2020/03/29
- feature/native-comp 79483a5 01/10: * .gitlab-ci.yml (test-native-bootstrap-speed*): Timeout to 8h, Andrea Corallo, 2020/03/29
- feature/native-comp d5f6dc1 04/10: Prevent collisions in C namespace and function shadowing, Andrea Corallo, 2020/03/29
- feature/native-comp 89cbff3 06/10: * test/src/comp-tests.el (comp-tests-doc): Fix, Andrea Corallo, 2020/03/29
- feature/native-comp 530faee 09/10: Fix free function compilation, Andrea Corallo, 2020/03/29
- feature/native-comp c69c185 07/10: Add comp-test-40187 checking function shadowing.,
Andrea Corallo <=
- feature/native-comp 53f9bc6 08/10: * comp.el (comp-output-base-filename): Handle src being a symbol, Andrea Corallo, 2020/03/29
- feature/native-comp 00ee320 10/10: Merge remote-tracking branch 'savannah/master' into HEAD, Andrea Corallo, 2020/03/29