16 lines · cpp
1// RUN: c-index-test core -print-source-symbols -- %s | FileCheck %s2 3template<typename T>4struct A {5 void f(int);6 // CHECK: {{[0-9]+}}:8 | instance-method/C++ | f | c:@ST>1#T@A@F@f#I# |7 8 template<typename U>9 void f(U);10 // CHECK: {{[0-9]+}}:8 | instance-method/C++ | f | c:@ST>1#T@A@FT@>1#Tf#t1.0#v# |11 12 template<>13 void f<int>(int);14 // CHECK: {{[0-9]+}}:8 | instance-method/C++ | f | c:@ST>1#T@A@F@f<#I>#I# |15};16