mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 374993. Simplified a test.
This commit is contained in:
parent
d909a4f50a
commit
bd6fb125eb
1 changed files with 9 additions and 12 deletions
|
@ -5631,7 +5631,7 @@ public class AST2TemplateTests extends AST2BaseTest {
|
||||||
// ns::C<IsAorB<int>::value> a;
|
// ns::C<IsAorB<int>::value> a;
|
||||||
// f(a);
|
// f(a);
|
||||||
// };
|
// };
|
||||||
public void testDependentExpressions() throws Exception {
|
public void testDependentExpressions_a() throws Exception {
|
||||||
parseAndCheckBindings();
|
parseAndCheckBindings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5640,31 +5640,28 @@ public class AST2TemplateTests extends AST2BaseTest {
|
||||||
// typedef T type;
|
// typedef T type;
|
||||||
// };
|
// };
|
||||||
//
|
//
|
||||||
// template<typename T>
|
// template <typename T>
|
||||||
// struct B {};
|
// struct B {
|
||||||
//
|
// struct C {
|
||||||
// template <typename T, typename U = B<T> >
|
|
||||||
// struct C {
|
|
||||||
// struct D {
|
|
||||||
// template<typename V>
|
// template<typename V>
|
||||||
// static typename V::pointer test(typename V::pointer*);
|
// static typename V::pointer test(typename V::pointer*);
|
||||||
// template<typename V>
|
// template<typename V>
|
||||||
// static T* test(...);
|
// static T* test(...);
|
||||||
//
|
//
|
||||||
// typedef typename A<U>::type E;
|
// typedef typename A<T>::type D;
|
||||||
// typedef decltype(test<E>(0)) type;
|
// typedef decltype(test<D>(0)) type;
|
||||||
// };
|
// };
|
||||||
//
|
//
|
||||||
// typedef typename D::type pointer;
|
// typedef typename C::type pointer;
|
||||||
// };
|
// };
|
||||||
//
|
//
|
||||||
// void f(int*);
|
// void f(int*);
|
||||||
// void f(int);
|
// void f(int);
|
||||||
//
|
//
|
||||||
// void test(C<int>::pointer a) {
|
// void test(B<int>::pointer a) {
|
||||||
// f(a);
|
// f(a);
|
||||||
// }
|
// }
|
||||||
public void _testDependentExpressionsDecltype() throws Exception {
|
public void _testDependentExpressions_b() throws Exception {
|
||||||
parseAndCheckBindings();
|
parseAndCheckBindings();
|
||||||
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), CPP);
|
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), CPP);
|
||||||
ICPPFunction func= bh.assertNonProblem("f(a)", 1, ICPPFunction.class);
|
ICPPFunction func= bh.assertNonProblem("f(a)", 1, ICPPFunction.class);
|
||||||
|
|
Loading…
Add table
Reference in a new issue