Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / comment-cplus11-specific.cpp
blob44263686432dce2d8a3b6407a5a1857bda40b355
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
6 namespace inner {
7 //! This documentation should be inherited.
8 struct Opaque;
10 // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
12 namespace borrow {
13 //! This is documentation for the typedef (which shows up).
14 typedef inner::Opaque Typedef;
15 // CHECK: (CXComment_Text Text=[ This is documentation for the typedef (which shows up).])))]
17 //! This is documentation for the alias (which shows up).
18 using Alias = inner::Opaque;
19 // CHECK: (CXComment_Text Text=[ This is documentation for the alias (which shows up).])))]
21 typedef inner::Opaque NoDocTypedef;
22 // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
24 using NoDocAlias = inner::Opaque;
25 // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]