1 | // Make sure the preable does not truncate comments. |
---|---|
2 | |
3 | #ifndef BAZ |
4 | #define BAZ 3 |
5 | #endif |
6 | |
7 | //! Foo’s description. |
8 | void Foo(); |
9 | |
10 | // RUN: c-index-test -test-load-source-reparse 1 local %s | FileCheck %s |
11 | // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 1 local %s | FileCheck %s |
12 | |
13 | // CHECK: FunctionDecl=Foo:8:6 RawComment=[//! Foo’s description.] RawCommentRange=[7:1 - 7:25] BriefComment=[Foo’s description.] |
14 |