mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Test case for bug 284690.
This commit is contained in:
parent
936d9e6b75
commit
4566fa3eab
1 changed files with 13 additions and 4 deletions
|
@ -1378,6 +1378,17 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
|||
assertFalse(f1.equals(f2));
|
||||
}
|
||||
|
||||
// class A {
|
||||
// friend inline void m(A p) {}
|
||||
// };
|
||||
|
||||
// void test(A a) {
|
||||
// m(a);
|
||||
// }
|
||||
public void _testInlineFriendFunction_284690() throws Exception {
|
||||
getBindingFromASTName("m(a)", 1, IFunction.class);
|
||||
}
|
||||
|
||||
/* CPP assertion helpers */
|
||||
/* ##################################################################### */
|
||||
|
||||
|
@ -1385,8 +1396,7 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
|||
IBinding binding,
|
||||
String qn,
|
||||
Class expType,
|
||||
String expTypeQN
|
||||
) {
|
||||
String expTypeQN) {
|
||||
try {
|
||||
assertTrue(binding instanceof ICPPField);
|
||||
ICPPField field = (ICPPField) binding;
|
||||
|
@ -1430,8 +1440,7 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
|
|||
int allDeclaredMethods,
|
||||
int friends,
|
||||
int constructors,
|
||||
int nestedClasses
|
||||
) {
|
||||
int nestedClasses) {
|
||||
try {
|
||||
assertTrue(type instanceof ICPPClassType);
|
||||
ICPPClassType classType = (ICPPClassType) type;
|
||||
|
|
Loading…
Add table
Reference in a new issue