Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-01-22 22:20:15 +0000
committerSergey Prigogin2013-01-23 17:35:52 +0000
commitbe4742a73931d845e46966e5222515bccc65f3d4 (patch)
tree0b732accfbc69a94f916a450f9a03311ca27abeb
parent7024a0c552bd934234f36507e257e30542fa74fa (diff)
downloadorg.eclipse.cdt-be4742a73931d845e46966e5222515bccc65f3d4.tar.gz
org.eclipse.cdt-be4742a73931d845e46966e5222515bccc65f3d4.tar.xz
org.eclipse.cdt-be4742a73931d845e46966e5222515bccc65f3d4.zip
Test simplification.
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java7
1 files changed, 3 insertions, 4 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 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 <typename T>
// struct C {
- // enum { id = B<T>::value ? 0 : -1 };
+ // enum { id = B<T>::value };
// };
//
// void test() {
// int x = C<bool>::id;
// }
- public void _testDependentEnum_398696() throws Exception {
+ public void _testDependentEnumValue_389009() throws Exception {
BindingAssertionHelper ah = getAssertionHelper();
IEnumerator binding = ah.assertNonProblem("C<bool>::id", "id");
- IBinding owner = binding.getOwner();
IValue value = binding.getValue();
Long num = value.numericalValue();
assertNotNull(num);
- assertEquals(0, num.longValue());
+ assertEquals(1, num.longValue());
}
}

Back to the top