brintos

brintos / llvm-project-archived public Read only

0
0
Text · 472 B · d2279b1 Raw
20 lines · cpp
1// Tests are line- and column-sensive, so run lines are below.2 3template<typename T>4class X {5  X();6  X(const X&);7  8  template<typename U> X(U);9};10 11template<typename T> void f(T);12 13void test() {14  15}16 17// RUN: c-index-test -code-completion-at=%s:14:2 %s | FileCheck %s18// CHECK: FunctionTemplate:{ResultType void}{TypedText f}{LeftParen (}{Placeholder T}{RightParen )} (50)19// CHECK: ClassTemplate:{TypedText X}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)20