xref: /minix3/external/bsd/llvm/dist/clang/test/Index/complete-templates.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Tests are line- and column-sensive, so run lines are below.
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc template<typename T>
4*f4a2713aSLionel Sambuc class X {
5*f4a2713aSLionel Sambuc   X();
6*f4a2713aSLionel Sambuc   X(const X&);
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc   template<typename U> X(U);
9*f4a2713aSLionel Sambuc };
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc template<typename T> void f(T);
12*f4a2713aSLionel Sambuc 
test()13*f4a2713aSLionel Sambuc void test() {
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc }
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc // RUN: c-index-test -code-completion-at=%s:14:2 %s | FileCheck %s
18*f4a2713aSLionel Sambuc // CHECK: FunctionTemplate:{ResultType void}{TypedText f}{LeftParen (}{Placeholder T}{RightParen )} (50)
19*f4a2713aSLionel Sambuc // CHECK: ClassTemplate:{TypedText X}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)
20