1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-05 06:33:23 +02:00

Test case for bug 284690.

This commit is contained in:
Sergey Prigogin 2009-08-10 01:51:43 +00:00
parent 936d9e6b75
commit 4566fa3eab

View file

@ -1378,6 +1378,17 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
assertFalse(f1.equals(f2)); 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 */ /* CPP assertion helpers */
/* ##################################################################### */ /* ##################################################################### */
@ -1385,8 +1396,7 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
IBinding binding, IBinding binding,
String qn, String qn,
Class expType, Class expType,
String expTypeQN String expTypeQN) {
) {
try { try {
assertTrue(binding instanceof ICPPField); assertTrue(binding instanceof ICPPField);
ICPPField field = (ICPPField) binding; ICPPField field = (ICPPField) binding;
@ -1430,8 +1440,7 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
int allDeclaredMethods, int allDeclaredMethods,
int friends, int friends,
int constructors, int constructors,
int nestedClasses int nestedClasses) {
) {
try { try {
assertTrue(type instanceof ICPPClassType); assertTrue(type instanceof ICPPClassType);
ICPPClassType classType = (ICPPClassType) type; ICPPClassType classType = (ICPPClassType) type;