Douglas Gregor | e8d7beb | 2010-09-03 23:30:36 +0000 | [diff] [blame] | 1 | // Tests are line- and column-sensive, so run lines are below. |
| 2 | |
| 3 | template<typename T> |
| 4 | class X { |
| 5 | X(); |
| 6 | X(const X&); |
| 7 | |
| 8 | template<typename U> X(U); |
| 9 | }; |
| 10 | |
| 11 | template<typename T> void f(T); |
| 12 | |
| 13 | void test() { |
| 14 | |
| 15 | } |
| 16 | |
| 17 | // RUN: c-index-test -code-completion-at=%s:14:2 %s | FileCheck %s |
Douglas Gregor | d475aad | 2010-09-20 21:25:19 +0000 | [diff] [blame] | 18 | // CHECK: FunctionTemplate:{ResultType void}{TypedText f}{LeftParen (}{Placeholder T}{RightParen )} (50) |
Douglas Gregor | e8d7beb | 2010-09-03 23:30:36 +0000 | [diff] [blame] | 19 | // CHECK: ClassTemplate:{TypedText X}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50) |