xref: /minix3/external/bsd/llvm/dist/clang/test/Index/comment-with-preamble.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Make sure the preable does not truncate comments.
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc #ifndef BAZ
4*f4a2713aSLionel Sambuc #define BAZ 3
5*f4a2713aSLionel Sambuc #endif
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc //! Foo’s description.
8*f4a2713aSLionel Sambuc void Foo();
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc // RUN: c-index-test -test-load-source-reparse 1 local %s | FileCheck %s
11*f4a2713aSLionel Sambuc // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 1 local %s | FileCheck %s
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc // CHECK: FunctionDecl=Foo:8:6 RawComment=[//! Foo’s description.] RawCommentRange=[7:1 - 7:25] BriefComment=[Foo’s description.]
14