diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java index 4fce34e6dd1..ad37f5f5173 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java @@ -954,9 +954,30 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa // func(&a, &A::m); // } public void testFunctionTemplate_245030() throws Exception { - IBinding b0= getBindingFromASTName("func(&a, &A::m)", 4); - assertInstance(b0, ICPPTemplateInstance.class); - assertInstance(b0, ICPPFunction.class); + ICPPFunction f= getBindingFromASTName("func(&a, &A::m)", 4, ICPPFunction.class); + assertInstance(f, ICPPTemplateInstance.class); + } + + // template + // void func(const U& u, const typename U::t& v) { + // } + // + // template + // void func(U& u, const typename U::t& v) { + // } + + // template class A { + // typedef T t; + // }; + // + // void test() { + // const A& a; + // int b; + // func(a, b); + // } + public void _testFunctionTemplate_319498() throws Exception { + ICPPFunction f= getBindingFromASTName("func(a, b)", 4, ICPPFunction.class); + assertInstance(f, ICPPTemplateInstance.class); } // template