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:
parent
5c895b6139
commit
608669a12f
1 changed files with 11 additions and 0 deletions
|
@ -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) {}
|
||||
// };
|
||||
|
|
Loading…
Add table
Reference in a new issue