From b8b5c3e1b18cf6b6e62720f0714baebb227604bb Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Mon, 6 Aug 2012 21:09:46 -0700 Subject: [PATCH] Bug 374993. Simplified a test. --- .../parser/tests/ast2/AST2TemplateTests.java | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java index c1bcafa8798..0cba0b7e158 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java @@ -5631,7 +5631,7 @@ public class AST2TemplateTests extends AST2BaseTest { // ns::C::value> a; // f(a); // }; - public void testDependentExpressions() throws Exception { + public void testDependentExpressions_a() throws Exception { parseAndCheckBindings(); } @@ -5640,31 +5640,28 @@ public class AST2TemplateTests extends AST2BaseTest { // typedef T type; // }; // - // template - // struct B {}; - // - // template > - // struct C { - // struct D { + // template + // struct B { + // struct C { // template // static typename V::pointer test(typename V::pointer*); // template // static T* test(...); // - // typedef typename A::type E; - // typedef decltype(test(0)) type; + // typedef typename A::type D; + // typedef decltype(test(0)) type; // }; // - // typedef typename D::type pointer; + // typedef typename C::type pointer; // }; // // void f(int*); // void f(int); // - // void test(C::pointer a) { + // void test(B::pointer a) { // f(a); // } - public void _testDependentExpressionsDecltype() throws Exception { + public void _testDependentExpressions_b() throws Exception { parseAndCheckBindings(); BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), CPP); ICPPFunction func= bh.assertNonProblem("f(a)", 1, ICPPFunction.class);