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