1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

Test case for bug 284665.

This commit is contained in:
Sergey Prigogin 2009-08-23 04:08:59 +00:00
parent 5c895b6139
commit 608669a12f

View file

@ -42,6 +42,7 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPNamespaceScope;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPPointerToMemberType;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPVariable;
import org.eclipse.cdt.core.index.IIndex;
import org.eclipse.cdt.core.index.IIndexBinding;
import org.eclipse.core.runtime.CoreException;
/**
@ -1371,6 +1372,16 @@ public abstract class IndexCPPBindingResolutionTest extends IndexBindingResoluti
assertFalse(f1.equals(f2));
}
// class A {
// class B;
// };
// class A::B {};
public void _testNestedClass_284665() throws Exception {
ICPPClassType b = getBindingFromASTName("B {}", 1, ICPPClassType.class);
assertFalse(b instanceof IIndexBinding);
}
// class A {
// friend inline void m(A p) {}
// };