mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
185828: add test case
This commit is contained in:
parent
4ec3ba2baa
commit
0ae039bf7a
1 changed files with 21 additions and 0 deletions
|
@ -54,6 +54,27 @@ public class IndexCPPBindingResolutionBugs extends IndexBindingResolutionTestBas
|
||||||
setStrategy(new SinglePDOMTestStrategy(true));
|
setStrategy(new SinglePDOMTestStrategy(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// template<typename T>
|
||||||
|
// class C : public C<T> {};
|
||||||
|
|
||||||
|
// void foo() {
|
||||||
|
// C<int>::unresolvable();
|
||||||
|
// };
|
||||||
|
public void _test185828() throws Exception {
|
||||||
|
// Bug 185828 reports a StackOverflowException is thrown before we get here.
|
||||||
|
// That the SOE is thrown is detected in BaseTestCase via an Error IStatus
|
||||||
|
|
||||||
|
IBinding b0= getBindingFromASTName("C", 1);
|
||||||
|
IBinding b1= getBindingFromASTName("C<int>", 6, true);
|
||||||
|
IBinding b2= getProblemFromASTName("unresolvable", 12);
|
||||||
|
|
||||||
|
assertInstance(b0, ICPPClassType.class);
|
||||||
|
assertInstance(b0, ICPPClassTemplate.class);
|
||||||
|
|
||||||
|
assertInstance(b1, ICPPClassType.class);
|
||||||
|
assertInstance(b1, ICPPSpecialization.class);
|
||||||
|
}
|
||||||
|
|
||||||
// class MyClass {
|
// class MyClass {
|
||||||
// public:
|
// public:
|
||||||
// template<class T>
|
// template<class T>
|
||||||
|
|
Loading…
Add table
Reference in a new issue