| Douglas Gregor | 2259d85 | 2011-10-10 23:44:35 +0000 | [diff] [blame] | 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=CC1 %s | 
| Argyrios Kyrtzidis | 9ae3956 | 2012-09-26 16:39:56 +0000 | [diff] [blame] | 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) |