1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 333186: Testcase.

This commit is contained in:
Markus Schorn 2011-01-07 10:14:53 +00:00
parent b391b4fac4
commit 3a300ec622

View file

@ -5155,4 +5155,22 @@ public class AST2TemplateTests extends AST2BaseTest {
IBinding f2= bh.assertNonProblem("foo =", 3);
assertSame(f1, f2);
}
// template <class T> struct TestTmpl {
// struct Inner1;
// struct Inner2{
// Inner1* ptr1;
// };
// struct Inner1{
// Inner2* ptr2;
// };
// };
// struct TestImpl:TestTmpl<int>{};
// void func(TestImpl::Inner1* ptr1) {
// TestImpl::Inner2* ptr2=ptr1->ptr2;
// func(ptr2->ptr1);
// }
public void testSpecializationViaNotDirectlyEnclosingTemplate_Bug333186() throws Exception {
parseAndCheckBindings();
}
}