diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java index 51fdfe23d8a..abd0828487d 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java @@ -1312,7 +1312,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa assertTrue(t2 instanceof ICPPSpecialization); final IType type = t2.getType(); assertTrue(type instanceof IBasicType); - assertEquals(((IBasicType)type).getType(), IBasicType.t_int); + assertEquals("int", ASTTypeUtil.getType(type)); } // template struct iterator_traits { @@ -1366,7 +1366,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa final IType type = t2.getType(); assertTrue(type instanceof IBasicType); - assertEquals(((IBasicType) type).getType(), IBasicType.t_int); + assertEquals("int", ASTTypeUtil.getType(type)); } // struct A { @@ -1377,7 +1377,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa // struct A::S {}; // A::S a; - public void testXXX() throws Exception { + public void testMemberTemplateClass() throws Exception { checkBindings(); } @@ -2236,7 +2236,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa public void testDependentExpression_395875() throws Exception { getBindingFromASTName("f(n.foo(0))", 1, ICPPFunction.class); } - + // struct true_ { // static const bool value = true; // }; @@ -2274,7 +2274,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa public void testIntNullPointerConstant_407808() throws Exception { checkBindings(); } - + // namespace bar { // template // void join(T); @@ -2283,7 +2283,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa // namespace foo { // template // void join(T); - // + // // struct cat {}; // } @@ -2296,7 +2296,7 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa public void testADLForQualifiedName_408296() throws Exception { checkBindings(); } - + // template // struct waldo { // }; @@ -2308,11 +2308,9 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa // // template // struct outer::inner> {}; - + // int main() {} public void testRegression_408314() throws Exception { checkBindings(); } } - -