* test/lisp/progmodes/cc-mode-tests.el: Add a test with /***/ in #define lines

This commit is contained in:
Nick Drozd 2019-07-17 14:07:26 +00:00 committed by Alan Mackenzie
parent 87b1495f30
commit b8bf7255f3

View file

@ -69,4 +69,13 @@
"struct template {"
"#include <string.h>")))))
(ert-deftest c-mode-macro-comment ()
"Test for bug#36484."
(dolist (macro-string '("#define /***/f"
"#define x /***/5"
"#define a(x)get/***/x/***/id())"))
(with-temp-buffer
(insert macro-string)
(c-mode))))
;;; cc-mode-tests.el ends here