xref: /llvm-project/clang/test/Index/complete-templates.cpp (revision db5c09a8cde4cd654335d96f6ce992cae7ee846e)
109c0eb15SDouglas Gregor // Tests are line- and column-sensive, so run lines are below.
209c0eb15SDouglas Gregor 
309c0eb15SDouglas Gregor template<typename T>
409c0eb15SDouglas Gregor class X {
509c0eb15SDouglas Gregor   X();
609c0eb15SDouglas Gregor   X(const X&);
709c0eb15SDouglas Gregor 
809c0eb15SDouglas Gregor   template<typename U> X(U);
909c0eb15SDouglas Gregor };
1009c0eb15SDouglas Gregor 
1109c0eb15SDouglas Gregor template<typename T> void f(T);
1209c0eb15SDouglas Gregor 
test()1309c0eb15SDouglas Gregor void test() {
1409c0eb15SDouglas Gregor 
1509c0eb15SDouglas Gregor }
1609c0eb15SDouglas Gregor 
1709c0eb15SDouglas Gregor // RUN: c-index-test -code-completion-at=%s:14:2 %s | FileCheck %s
18*db5c09a8SDouglas Gregor // CHECK: FunctionTemplate:{ResultType void}{TypedText f}{LeftParen (}{Placeholder T}{RightParen )} (50)
1909c0eb15SDouglas Gregor // CHECK: ClassTemplate:{TypedText X}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)
20