mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
Test case for bug 284690.
This commit is contained in:
parent
4566fa3eab
commit
7ac2badc64
1 changed files with 14 additions and 13 deletions
|
@ -1358,13 +1358,6 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
||||||
getBindingFromASTName("A a", 1, ICPPClassType.class);
|
getBindingFromASTName("A a", 1, ICPPClassType.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkValue(IValue initialValue, int i) {
|
|
||||||
assertNotNull(initialValue);
|
|
||||||
final Long numericalValue = initialValue.numericalValue();
|
|
||||||
assertNotNull(numericalValue);
|
|
||||||
assertEquals(i, numericalValue.intValue());
|
|
||||||
}
|
|
||||||
|
|
||||||
// void f(int (&v)[1]);
|
// void f(int (&v)[1]);
|
||||||
// void f(int (&v)[2]);
|
// void f(int (&v)[2]);
|
||||||
|
|
||||||
|
@ -1425,7 +1418,8 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
||||||
int constructors,
|
int constructors,
|
||||||
int nestedClasses) {
|
int nestedClasses) {
|
||||||
assertTrue(binding instanceof ICPPClassType);
|
assertTrue(binding instanceof ICPPClassType);
|
||||||
assertClassType(((ICPPClassType) binding), qn, key, bases, fields, declaredFields, methods, declaredMethods, allDeclaredMethods, friends, constructors, nestedClasses);
|
assertClassType((ICPPClassType) binding, qn, key, bases, fields, declaredFields, methods,
|
||||||
|
declaredMethods, allDeclaredMethods, friends, constructors, nestedClasses);
|
||||||
}
|
}
|
||||||
|
|
||||||
static protected void assertClassType(
|
static protected void assertClassType(
|
||||||
|
@ -1489,4 +1483,11 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
||||||
assertQNEquals(qn, tyBinding);
|
assertQNEquals(qn, tyBinding);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void checkValue(IValue initialValue, int i) {
|
||||||
|
assertNotNull(initialValue);
|
||||||
|
final Long numericalValue = initialValue.numericalValue();
|
||||||
|
assertNotNull(numericalValue);
|
||||||
|
assertEquals(i, numericalValue.intValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue