[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / comment-cplus11-specific.cpp
blobfa0db914cd7cfd10794864771b549affb3d4fec9
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng std=c++11 %s > %t/out
4 // RUN: FileCheck %s < %t/out
5 // rdar://13752382
7 namespace inner {
8 //! This documentation should be inherited.
9 struct Opaque;
11 // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
13 namespace borrow {
14 //! This is documentation for the typedef (which shows up).
15 typedef inner::Opaque Typedef;
16 // CHECK: (CXComment_Text Text=[ This is documentation for the typedef (which shows up).])))]
18 //! This is documentation for the alias (which shows up).
19 using Alias = inner::Opaque;
20 // CHECK: (CXComment_Text Text=[ This is documentation for the alias (which shows up).])))]
22 typedef inner::Opaque NoDocTypedef;
23 // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
25 using NoDocAlias = inner::Opaque;
26 // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]