[cfe-commits] r159267 - /cfe/trunk/test/Index/annotate-comments-unterminated.c

Dmitri Gribenko gribozavr at gmail.com
Wed Jun 27 09:05:49 PDT 2012


Author: gribozavr
Date: Wed Jun 27 11:05:49 2012
New Revision: 159267

URL: http://llvm.org/viewvc/llvm-project?rev=159267&view=rev
Log:
Add a test for unterminated /* comments.

Added:
    cfe/trunk/test/Index/annotate-comments-unterminated.c

Added: cfe/trunk/test/Index/annotate-comments-unterminated.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/annotate-comments-unterminated.c?rev=159267&view=auto
==============================================================================
--- cfe/trunk/test/Index/annotate-comments-unterminated.c (added)
+++ cfe/trunk/test/Index/annotate-comments-unterminated.c Wed Jun 27 11:05:49 2012
@@ -0,0 +1,13 @@
+// RUN: c-index-test -test-load-source all %s | FileCheck %s
+// RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -check-prefix=ERR %s
+
+// CHECK: annotate-comments-unterminated.c:9:5: VarDecl=x:{{.*}} RawComment=[/** Aaa. */]{{.*}} BriefComment=[ Aaa. \n]
+// CHECK: annotate-comments-unterminated.c:11:5: VarDecl=y:{{.*}} RawComment=[/**< Bbb. */]{{.*}} BriefComment=[ Bbb. \n]
+// CHECK-ERR: error: unterminated
+
+/** Aaa. */
+int x;
+
+int y; /**< Bbb. */
+/**< Ccc.
+ * Ddd.





More information about the cfe-commits mailing list