1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 21:05:37 +02:00

Test simplification.

This commit is contained in:
Sergey Prigogin 2013-01-22 14:20:15 -08:00
parent f94c6909ac
commit ca712e679a

View file

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