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:
parent
d56a79adc4
commit
fb4339f87b
1 changed files with 18 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue