mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Added a test case for bug 213861.
This commit is contained in:
parent
0993798b3b
commit
68f33f47f4
1 changed files with 16 additions and 0 deletions
|
@ -813,4 +813,20 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
|
|||
assertInstance(b1, ICPPTemplateDefinition.class);
|
||||
assertInstance(b1, ICPPClassType.class);
|
||||
}
|
||||
|
||||
// template<typename T>
|
||||
// class C {
|
||||
// public:
|
||||
// typedef T value_type;
|
||||
// void m(value_type v) {}
|
||||
// };
|
||||
|
||||
// void main() {
|
||||
// C<int> x;
|
||||
// x.m(0);
|
||||
// }
|
||||
public void _testTypedefInTemplateClass_213861() throws Exception {
|
||||
IBinding b0= getBindingFromASTName("m(0)", 1);
|
||||
assertInstance(b0, ICPPMethod.class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue