1 // RUN: c-index-test -test-load-source all %s | FileCheck %s
2 // RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-ERR %s
3 
4 // CHECK: annotate-comments-unterminated.c:9:5: VarDecl=x:{{.*}} RawComment=[/** Aaa. */]{{.*}} BriefComment=[Aaa.]
5 // CHECK: annotate-comments-unterminated.c:11:5: VarDecl=y:{{.*}} RawComment=[/**< Bbb. */]{{.*}} BriefComment=[Bbb.]
6 // CHECK-ERR: error: unterminated
7 
8 /** Aaa. */
9 int x;
10 
11 int y; /**< Bbb. */
12 /**< Ccc.
13  * Ddd.
14