1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +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>
// 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());
}
}