1*f4a2713aSLionel Sambuc template <typename X, typename Y> 2*f4a2713aSLionel Sambuc class C 3*f4a2713aSLionel Sambuc { 4*f4a2713aSLionel Sambuc }; 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc class Foo 7*f4a2713aSLionel Sambuc { 8*f4a2713aSLionel Sambuc public: 9*f4a2713aSLionel Sambuc C<Foo, class Bar> c; 10*f4a2713aSLionel Sambuc }; 11*f4a2713aSLionel Sambuc foo()12*f4a2713aSLionel Sambucvoid foo() 13*f4a2713aSLionel Sambuc { 14*f4a2713aSLionel Sambuc Foo:: 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc // RUN: c-index-test -code-completion-at=%s:14:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s 17*f4a2713aSLionel Sambuc // CHECK-CC1: FieldDecl:{ResultType C<Foo, class Bar>}{TypedText c} (35) 18*f4a2713aSLionel Sambuc // CHECK-CC1: ClassDecl:{TypedText Foo} (35) 19*f4a2713aSLionel Sambuc // CHECK-CC1: CXXMethod:{ResultType Foo &}{TypedText operator=}{LeftParen (}{Placeholder const Foo &}{RightParen )} 20*f4a2713aSLionel Sambuc // CHECK-CC1: CXXDestructor:{ResultType void}{TypedText ~Foo}{LeftParen (}{RightParen )} (35) 21