1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +02:00

Second test case for bug 259872.

This commit is contained in:
Sergey Prigogin 2009-01-17 08:30:01 +00:00
parent 3c0fa285d6
commit 0b4d235c72

View file

@ -3568,11 +3568,36 @@ public class AST2TemplateTests extends AST2BaseTest {
// new A<B, int>(&B::m);
// }
// };
public void testNestedTemplates_259872() throws Exception {
public void testNestedTemplates_259872_1() throws Exception {
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true);
bh.assertNonProblem("A<B, int>", 9, ICPPConstructor.class);
}
// template <typename CL, typename T>
// struct A {
// template<typename U> struct C {
// typedef T (U::*method1)();
// };
// template<class U> struct C<const U> {
// typedef T (U::*method1)();
// };
// typedef typename C<CL>::method1 method2;
//
// A(method2 p);
// };
//
// struct B {
// int m();
//
// void test() {
// new A<B, int>(&B::m);
// }
// };
public void _testNestedTemplates_259872_2() throws Exception {
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true);
bh.assertNonProblem("A<B, int>", 9, ICPPConstructor.class);
}
// template <class T>
// class DumbPtr {
// public: