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:
parent
b391b4fac4
commit
3a300ec622
1 changed files with 18 additions and 0 deletions
|
@ -5155,4 +5155,22 @@ public class AST2TemplateTests extends AST2BaseTest {
|
||||||
IBinding f2= bh.assertNonProblem("foo =", 3);
|
IBinding f2= bh.assertNonProblem("foo =", 3);
|
||||||
assertSame(f1, f2);
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue