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