[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / complete-templates.cpp
blobd2279b1fa73322ec1515346eb56997a8ac6324f9
1 // Tests are line- and column-sensive, so run lines are below.
3 template<typename T>
4 class X {
5 X();
6 X(const X&);
8 template<typename U> X(U);
9 };
11 template<typename T> void f(T);
13 void test() {
17 // RUN: c-index-test -code-completion-at=%s:14:2 %s | FileCheck %s
18 // CHECK: FunctionTemplate:{ResultType void}{TypedText f}{LeftParen (}{Placeholder T}{RightParen )} (50)
19 // CHECK: ClassTemplate:{TypedText X}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)