1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Test case for bug 245030.

This commit is contained in:
Sergey Prigogin 2008-08-23 23:26:34 +00:00
parent cfe64d83a6
commit e8efeee1b0

View file

@ -882,8 +882,24 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
assertInstance(sp, ICPPTemplateDefinition.class);
}
// //header file
// template <class T1, class T2, class R>
// void func(T1* obj, R (T2::*member)()) {
// }
//
// struct A {
// void m();
// };
// void test() {
// A a;
// 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);
}
// template<typename T>
// class Foo {};
//