1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Test case for bug 256240.

This commit is contained in:
Sergey Prigogin 2008-11-24 05:23:30 +00:00
parent 585e6cccbd
commit cab9222e5d

View file

@ -1038,6 +1038,15 @@ public class IndexCPPBindingResolutionBugs extends IndexBindingResolutionTestBas
assertBindings(new String[] {"P"}, ct.getNestedClasses()); assertBindings(new String[] {"P"}, ct.getNestedClasses());
} }
// void func(const int* x) {}
// void func(int* p) {
// func(const_cast<const int*>(p));
// }
public void _testFunctionWithConstCast_Bug256240() throws Exception {
getBindingFromASTName("func(const_cast", 4, ICPPFunction.class);
}
private void assertBindings(String[] expected, ICPPBase[] bases) throws DOMException { private void assertBindings(String[] expected, ICPPBase[] bases) throws DOMException {
IBinding[] bindings= new IBinding[bases.length]; IBinding[] bindings= new IBinding[bases.length];
for (int i = 0; i < bindings.length; i++) { for (int i = 0; i < bindings.length; i++) {