xref: /llvm-project/clang/test/Index/comment-redeclarations.cpp (revision f31d8df1c8c69e7a787c1c1c529a524f3001c66a)
1*f31d8df1SJan Korous // RUN: rm -rf %t
2*f31d8df1SJan Korous // RUN: mkdir %t
3*f31d8df1SJan Korous // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 %s > %t/out
4*f31d8df1SJan Korous // RUN: FileCheck %s < %t/out
5*f31d8df1SJan Korous 
6*f31d8df1SJan Korous class Foo;
7*f31d8df1SJan Korous // CHECK: CXComment_Text Text=[ Foo is the best!])))]
8*f31d8df1SJan Korous 
9*f31d8df1SJan Korous /// Foo is the best!
10*f31d8df1SJan Korous class Foo;
11*f31d8df1SJan Korous // CHECK: CXComment_Text Text=[ Foo is the best!])))]
12*f31d8df1SJan Korous 
13*f31d8df1SJan Korous class Foo {};
14*f31d8df1SJan Korous // CHECK: CXComment_Text Text=[ Foo is the best!])))]
15