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
6 
7 namespace inner {
8   //! This documentation should be inherited.
9   struct Opaque;
10 }
11 // CHECK:         (CXComment_Text Text=[ This documentation should be inherited.])))]
12 
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).])))]
17 
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).])))]
21 
22   typedef inner::Opaque NoDocTypedef;
23 // CHECK:         (CXComment_Text Text=[ This documentation should be inherited.])))]
24 
25   using NoDocAlias = inner::Opaque;
26 // CHECK:         (CXComment_Text Text=[ This documentation should be inherited.])))]
27 }
28