From 608669a12f084124e3e55f57a5dfc5829913ff8d Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Sun, 23 Aug 2009 04:08:59 +0000 Subject: [PATCH] Test case for bug 284665. --- .../index/tests/IndexCPPBindingResolutionTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionTest.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionTest.java index 670959f8abd..859fc618b52 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionTest.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPBindingResolutionTest.java @@ -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) {} // };