xref: /minix3/external/bsd/llvm/dist/clang/test/Index/annotate-comments-unterminated.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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