From 203912cf4448ed83ebd385e62095b91dc1fb6941 Mon Sep 17 00:00:00 2001 From: Andrew Ferguson Date: Mon, 5 Feb 2007 17:54:30 +0000 Subject: [PATCH] check type run-time IType expected type against IType type (rather than IScope type) --- .../org/eclipse/cdt/internal/index/tests/IndexBugsTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexBugsTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexBugsTests.java index 8640ce62810..28b9114e33c 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexBugsTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexBugsTests.java @@ -31,7 +31,6 @@ import org.eclipse.cdt.core.dom.ast.ICompositeType; import org.eclipse.cdt.core.dom.ast.IEnumeration; import org.eclipse.cdt.core.dom.ast.IType; import org.eclipse.cdt.core.dom.ast.ITypedef; -import org.eclipse.cdt.core.dom.ast.c.ICCompositeTypeScope; import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType; import org.eclipse.cdt.core.dom.ast.cpp.ICPPVariable; import org.eclipse.cdt.core.index.IIndex; @@ -413,7 +412,7 @@ public class IndexBugsTests extends BaseTestCase { assertEquals(2, bindings.length); IBinding struct, typedef; - if (bindings[0] instanceof ICCompositeTypeScope) { + if (bindings[0] instanceof ICompositeType) { struct= bindings[0]; typedef= bindings[1]; } @@ -424,7 +423,7 @@ public class IndexBugsTests extends BaseTestCase { assertTrue(struct instanceof ICompositeType); assertTrue(typedef instanceof ITypedef); - assertTrue(((ITypedef) typedef).getType() instanceof ICCompositeTypeScope); + assertTrue(((ITypedef) typedef).getType() instanceof ICompositeType); assertTrue(((ITypedef) typedef).isSameType((ICompositeType) struct)); } finally {