Dmitri Gribenko | 1255e1b | 2012-06-27 16:05:49 +0000 | [diff] [blame] | 1 | // RUN: c-index-test -test-load-source all %s | FileCheck %s |
Tim Northover | 931a4fe | 2013-08-12 12:51:05 +0000 | [diff] [blame] | 2 | // RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-ERR %s |
Dmitri Gribenko | 1255e1b | 2012-06-27 16:05:49 +0000 | [diff] [blame] | 3 | |
Dmitri Gribenko | d558b52 | 2012-06-28 01:38:21 +0000 | [diff] [blame] | 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.] |
Dmitri Gribenko | 1255e1b | 2012-06-27 16:05:49 +0000 | [diff] [blame] | 6 | // CHECK-ERR: error: unterminated |
| 7 | |
| 8 | /** Aaa. */ |
| 9 | int x; |
| 10 | |
| 11 | int y; /**< Bbb. */ |
| 12 | /**< Ccc. |
| 13 | * Ddd. |