1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Added a test case for bug 233889.

This commit is contained in:
Sergey Prigogin 2008-07-12 23:04:15 +00:00
parent d56a79adc4
commit fb4339f87b

View file

@ -996,6 +996,24 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
public void _testAddressOfOverloadedMethod() throws DOMException { fail("aftodo"); }
// struct C {
// int m1(int a);
// int m2(int a) const;
// };
//
// C* func(int (C::*m)(int) const);
// C* func(int (C::*m)(int));
// void ref() {
// func(&C::m1);
// func(&C::m2);
// }
public void _testAddressOfConstMethod_233889() throws Exception {
IBinding fn1= getBindingFromASTName("func(&C::m1", 4, ICPPFunction.class);
IBinding fn2= getBindingFromASTName("func(&C::m2", 4, ICPPFunction.class);
assertNotSame(fn1, fn2);
}
// // the header
// void f_int(int);
// void f_const_int(const int);