mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
Test case for bug 258745.
This commit is contained in:
parent
ffe6069d37
commit
4f2be09411
1 changed files with 17 additions and 0 deletions
|
@ -1520,4 +1520,21 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
|
|||
ICPPClassType owner= m.getClassOwner();
|
||||
assertInstance(owner, ICPPClassTemplatePartialSpecialization.class);
|
||||
}
|
||||
|
||||
// namespace ns {
|
||||
// template<typename T1>
|
||||
// struct A {
|
||||
// static int a;
|
||||
// };
|
||||
// }
|
||||
//
|
||||
// template<typename T2>
|
||||
// struct B : public ns::A<T2> {};
|
||||
|
||||
// void test() {
|
||||
// B<int>::a;
|
||||
// }
|
||||
public void _testBug258745() throws Exception {
|
||||
ICPPField m= getBindingFromASTName("a", 1, ICPPField.class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue