2012-06-28 00:05:49 +08:00
|
|
|
// RUN: c-index-test -test-load-source all %s | FileCheck %s
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -check-prefix=ERR %s
|
2012-06-28 00:05:49 +08:00
|
|
|
|
2012-06-28 09:38:21 +08:00
|
|
|
// CHECK: annotate-comments-unterminated.c:9:5: VarDecl=x:{{.*}} RawComment=[/** Aaa. */]{{.*}} BriefComment=[Aaa.]
|
|
|
|
// CHECK: annotate-comments-unterminated.c:11:5: VarDecl=y:{{.*}} RawComment=[/**< Bbb. */]{{.*}} BriefComment=[Bbb.]
|
2012-06-28 00:05:49 +08:00
|
|
|
// CHECK-ERR: error: unterminated
|
|
|
|
|
|
|
|
/** Aaa. */
|
|
|
|
int x;
|
|
|
|
|
|
|
|
int y; /**< Bbb. */
|
|
|
|
/**< Ccc.
|
|
|
|
* Ddd.
|