1*67e74705SXin Li // RUN: rm -rf %t 2*67e74705SXin Li // RUN: mkdir %t 3*67e74705SXin Li // 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*67e74705SXin Li // RUN: FileCheck %s < %t/out 5*67e74705SXin Li // rdar://13752382 6*67e74705SXin Li 7*67e74705SXin Li namespace inner { 8*67e74705SXin Li //! This documentation should be inherited. 9*67e74705SXin Li struct Opaque; 10*67e74705SXin Li } 11*67e74705SXin Li // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))] 12*67e74705SXin Li 13*67e74705SXin Li namespace borrow { 14*67e74705SXin Li //! This is documentation for the typedef (which shows up). 15*67e74705SXin Li typedef inner::Opaque Typedef; 16*67e74705SXin Li // CHECK: (CXComment_Text Text=[ This is documentation for the typedef (which shows up).])))] 17*67e74705SXin Li 18*67e74705SXin Li //! This is documentation for the alias (which shows up). 19*67e74705SXin Li using Alias = inner::Opaque; 20*67e74705SXin Li // CHECK: (CXComment_Text Text=[ This is documentation for the alias (which shows up).])))] 21*67e74705SXin Li 22*67e74705SXin Li typedef inner::Opaque NoDocTypedef; 23*67e74705SXin Li // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))] 24*67e74705SXin Li 25*67e74705SXin Li using NoDocAlias = inner::Opaque; 26*67e74705SXin Li // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))] 27*67e74705SXin Li } 28