aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Drozd2019-07-17 14:07:26 +0000
committerAlan Mackenzie2019-07-17 14:07:26 +0000
commitb8bf7255f3fbffe3293a2ed0e4ef7cc8c664d183 (patch)
tree285072e26dee06e68b8ce662825b342b41927fac
parent87b1495f307b91226dda63ce7c117fed6a396768 (diff)
downloademacs-b8bf7255f3fbffe3293a2ed0e4ef7cc8c664d183.tar.gz
emacs-b8bf7255f3fbffe3293a2ed0e4ef7cc8c664d183.zip
* test/lisp/progmodes/cc-mode-tests.el: Add a test with /***/ in #define lines
-rw-r--r--test/lisp/progmodes/cc-mode-tests.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lisp/progmodes/cc-mode-tests.el b/test/lisp/progmodes/cc-mode-tests.el
index 0b8f37dbbf5..c10105fffcb 100644
--- a/test/lisp/progmodes/cc-mode-tests.el
+++ b/test/lisp/progmodes/cc-mode-tests.el
@@ -69,4 +69,13 @@
69 "struct template {" 69 "struct template {"
70 "#include <string.h>"))))) 70 "#include <string.h>")))))
71 71
72(ert-deftest c-mode-macro-comment ()
73 "Test for bug#36484."
74 (dolist (macro-string '("#define /***/f"
75 "#define x /***/5"
76 "#define a(x)get/***/x/***/id())"))
77 (with-temp-buffer
78 (insert macro-string)
79 (c-mode))))
80
72;;; cc-mode-tests.el ends here 81;;; cc-mode-tests.el ends here