mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +02:00
Test simplification.
This commit is contained in:
parent
f94c6909ac
commit
ca712e679a
1 changed files with 3 additions and 4 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue