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 b8d2a21ffb2..42468a11cb8 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 @@ -7014,19 +7014,18 @@ public class AST2TemplateTests extends AST2BaseTest { // // template // struct C { - // enum { id = B::value ? 0 : -1 }; + // enum { id = B::value }; // }; // // void test() { // int x = C::id; // } - public void _testDependentEnum_398696() throws Exception { + public void _testDependentEnumValue_389009() throws Exception { BindingAssertionHelper ah = getAssertionHelper(); IEnumerator binding = ah.assertNonProblem("C::id", "id"); - IBinding owner = binding.getOwner(); IValue value = binding.getValue(); Long num = value.numericalValue(); assertNotNull(num); - assertEquals(0, num.longValue()); + assertEquals(1, num.longValue()); } }