]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/progmodes/cc-mode-tests.el: Add a test with /***/ in #define lines
authorNick Drozd <nicholasdrozd@gmail.com>
Wed, 17 Jul 2019 14:07:26 +0000 (14:07 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 17 Jul 2019 14:07:26 +0000 (14:07 +0000)
test/lisp/progmodes/cc-mode-tests.el

index 0b8f37dbbf54f8ba8042092cd6f652198da4d44a..c10105fffcb78b762a352a83f015f34d06e60abc 100644 (file)
               "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