Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-08-07 04:09:46 +0000
committerSergey Prigogin2012-08-14 22:27:46 +0000
commitb8b5c3e1b18cf6b6e62720f0714baebb227604bb (patch)
tree17e850d0c43aab47bf60570f7024faa3684a7ad8
parentf2feff4d455d4dbc13014a8aad154743ffd3ee85 (diff)
downloadorg.eclipse.cdt-b8b5c3e1b18cf6b6e62720f0714baebb227604bb.tar.gz
org.eclipse.cdt-b8b5c3e1b18cf6b6e62720f0714baebb227604bb.tar.xz
org.eclipse.cdt-b8b5c3e1b18cf6b6e62720f0714baebb227604bb.zip
Bug 374993. Simplified a test.
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java21
1 files changed, 9 insertions, 12 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 c1bcafa8798..0cba0b7e158 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
@@ -5631,7 +5631,7 @@ public class AST2TemplateTests extends AST2BaseTest {
// ns::C<IsAorB<int>::value> a;
// f(a);
// };
- public void testDependentExpressions() throws Exception {
+ public void testDependentExpressions_a() throws Exception {
parseAndCheckBindings();
}
@@ -5640,31 +5640,28 @@ public class AST2TemplateTests extends AST2BaseTest {
// typedef T type;
// };
//
- // template<typename T>
- // struct B {};
- //
- // template <typename T, typename U = B<T> >
- // struct C {
- // struct D {
+ // template <typename T>
+ // struct B {
+ // struct C {
// template<typename V>
// static typename V::pointer test(typename V::pointer*);
// template<typename V>
// static T* test(...);
//
- // typedef typename A<U>::type E;
- // typedef decltype(test<E>(0)) type;
+ // typedef typename A<T>::type D;
+ // typedef decltype(test<D>(0)) type;
// };
//
- // typedef typename D::type pointer;
+ // typedef typename C::type pointer;
// };
//
// void f(int*);
// void f(int);
//
- // void test(C<int>::pointer a) {
+ // void test(B<int>::pointer a) {
// f(a);
// }
- public void _testDependentExpressionsDecltype() throws Exception {
+ public void _testDependentExpressions_b() throws Exception {
parseAndCheckBindings();
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), CPP);
ICPPFunction func= bh.assertNonProblem("f(a)", 1, ICPPFunction.class);

Back to the top